op_popt.h File Reference

#include <popt.h>
Include dependency graph for op_popt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define POPT_TABLEEND   { NULL, '\0', 0, 0, 0, NULL, NULL }

Functions

poptContext op_poptGetContext (char const *name, int argc, char const **argv, struct poptOption const *options, int flags)

Detailed Description

Wrapper for libpopt - always use this rather than popt.h

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file op_popt.h.


Define Documentation

#define POPT_TABLEEND   { NULL, '\0', 0, 0, 0, NULL, NULL }

Definition at line 20 of file op_popt.h.


Function Documentation

poptContext op_poptGetContext ( char const *  name,
int  argc,
char const **  argv,
struct poptOption const *  options,
int  flags 
)

op_poptGetContext - wrapper for popt

Use this instead of poptGetContext to cope with different popt versions. This also handle unrecognized options. All error are fatal.

Definition at line 18 of file op_popt.c.

References optcon.

Referenced by popt::do_parse_options(), get_options(), and opd_options().

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1