mcs.h   mcs.h 
skipping to change at line 48 skipping to change at line 48
#include <string.h> #include <string.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <dirent.h> #include <dirent.h>
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include <stdarg.h> #include <stdarg.h>
#include <errno.h> #include <errno.h>
#include <libmcs/mcs_config.h> #ifdef _MCS_CORE
# include <libmcs/mcs_config.h>
#endif
typedef struct mcs_list_ {
struct mcs_list_ *prev;
struct mcs_list_ *next;
void *data;
} mcs_list_t;
typedef enum { typedef enum {
MCS_FAIL, MCS_OK MCS_FAIL, MCS_OK
} mcs_response_t; } mcs_response_t;
typedef struct mcs_handle_ mcs_handle_t; typedef struct mcs_handle_ mcs_handle_t;
typedef struct { typedef struct {
void *handle; void *handle;
char *name; char *name;
skipping to change at line 120 skipping to change at line 128
mcs_response_t (*mcs_set_double)(mcs_handle_t *handle, mcs_response_t (*mcs_set_double)(mcs_handle_t *handle,
const char *section, const char *section,
const char *key, const char *key,
double value); double value);
/* unset */ /* unset */
mcs_response_t (*mcs_unset_key)(mcs_handle_t *handle, mcs_response_t (*mcs_unset_key)(mcs_handle_t *handle,
const char *section, const char *section,
const char *key); const char *key);
/* key request */
mcs_list_t *(*mcs_get_keys)(mcs_handle_t *handle,
const char *section);
/* sections request */
mcs_list_t *(*mcs_get_sections)(mcs_handle_t *handle);
} mcs_backend_t; } mcs_backend_t;
struct mcs_handle_ { struct mcs_handle_ {
mcs_backend_t *base; mcs_backend_t *base;
void *mcs_priv_handle; void *mcs_priv_handle;
}; };
typedef struct mcs_list_ {
struct mcs_list_ *prev;
struct mcs_list_ *next;
void *data;
} mcs_list_t;
/* /*
* These functions have to do with initialization of the * These functions have to do with initialization of the
* library. * library.
*/ */
extern void mcs_init(void); extern void mcs_init(void);
extern void mcs_fini(void); extern void mcs_fini(void);
extern char *mcs_version(void); extern char *mcs_version(void);
/* /*
* These functions have to do with registration of MCS backends. * These functions have to do with registration of MCS backends.
skipping to change at line 219 skipping to change at line 228
extern mcs_response_t mcs_set_double(mcs_handle_t *handle, extern mcs_response_t mcs_set_double(mcs_handle_t *handle,
const char *section, const char *section,
const char *key, const char *key,
double value); double value);
/* unset */ /* unset */
extern mcs_response_t mcs_unset_key(mcs_handle_t *handle, extern mcs_response_t mcs_unset_key(mcs_handle_t *handle,
const char *section, const char *section,
const char *key); const char *key);
/* key request */
extern mcs_list_t *mcs_get_keys(mcs_handle_t *handle,
const char *section);
extern mcs_list_t *mcs_get_sections(mcs_handle_t *handle);
/* /*
* These functions have to do with the plugin loader. * These functions have to do with the plugin loader.
*/ */
extern void mcs_load_plugins(void); extern void mcs_load_plugins(void);
extern void mcs_unload_plugins(mcs_list_t *l); extern void mcs_unload_plugins(mcs_list_t *l);
/* /*
* These functions manipulate linked lists. * These functions manipulate linked lists.
*/ */
extern mcs_list_t *mcs_list_append(mcs_list_t *head, void *data); extern mcs_list_t *mcs_list_append(mcs_list_t *head, void *data);
 End of changes. 4 change blocks. 
7 lines changed or deleted 22 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/