Logo Search packages:      
Sourcecode: libnih version File versions  Download package

config.h File Reference


Detailed Description

: offset within

A config handler is a function that is called when is found in a configuration file.

Definition in file config.h.

#include <sys/types.h>
#include <nih/macros.h>

Go to the source code of this file.

Classes

struct  nih_config_stanza

is found within a configuration file, @handler will be

called from a position after the stanza and any following whitespace.

#define NIH_CONFIG_CNL   "#\n"
#define NIH_CONFIG_CNLWS   " \t\r#\n"
#define NIH_CONFIG_LAST   { NULL, NULL }
#define NIH_CONFIG_WS   " \t\r"
char * malloc
NIH_BEGIN_EXTERN int nih_config_has_token (const char *file, size_t len, size_t *pos, size_t *lineno)
char * nih_config_next_arg (const void *parent, const char *file, size_t len, size_t *pos, size_t *lineno) __attribute__((warn_unused_result
void nih_config_next_line (const char *file, size_t len, size_t *pos, size_t *lineno)
char * nih_config_next_token (const void *parent, const char *file, size_t len, size_t *pos, size_t *lineno, const char *delim, int dequote) __attribute__((warn_unused_result
int nih_config_parse (const char *filename, size_t *pos, size_t *lineno, NihConfigStanza *stanzas, void *data) __attribute__((warn_unused_result))
char ** nih_config_parse_args (const void *parent, const char *file, size_t len, size_t *pos, size_t *lineno) __attribute__((warn_unused_result
char * nih_config_parse_block (const void *parent, const char *file, size_t len, size_t *pos, size_t *lineno, const char *type) __attribute__((warn_unused_result
char * nih_config_parse_command (const void *parent, const char *file, size_t len, size_t *pos, size_t *lineno) __attribute__((warn_unused_result
int nih_config_parse_file (const char *file, size_t len, size_t *pos, size_t *lineno, NihConfigStanza *stanzas, void *data) __attribute__((warn_unused_result))
int nih_config_parse_stanza (const char *file, size_t len, size_t *pos, size_t *lineno, NihConfigStanza *stanzas, void *data) __attribute__((warn_unused_result))
int nih_config_skip_block (const char *file, size_t len, size_t *lineno, size_t *pos, const char *type, size_t *endpos) __attribute__((warn_unused_result))
int nih_config_skip_comment (const char *file, size_t len, size_t *pos, size_t *lineno) __attribute__((warn_unused_result))
void nih_config_skip_whitespace (const char *file, size_t len, size_t *pos, size_t *lineno)
int nih_config_token (const char *file, size_t len, size_t *pos, size_t *lineno, char *dest, const char *delim, int dequote, size_t *toklen) __attribute__((warn_unused_result))

Typedefs

typedef int(* NihConfigHandler )(void *data, NihConfigStanza *stanza, const char *file, size_t len, size_t *pos, size_t *lineno)
typedef struct nih_config_stanza NihConfigStanza


Generated by  Doxygen 1.6.0   Back to index