mcs.h   mcs.h 
skipping to change at line 40 skipping to change at line 40
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef __LIBMCS_MCS_H__ #ifndef __LIBMCS_MCS_H__
#define __LIBMCS_MCS_H__ #define __LIBMCS_MCS_H__
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <dlfcn.h> #include <dlfcn.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 <errno.h>
#include <libmcs/mcs_config.h> #include <libmcs/mcs_config.h>
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 {
skipping to change at line 231 skipping to change at line 234
/* /*
* 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);
extern mcs_list_t *mcs_list_remove(mcs_list_t *head); extern mcs_list_t *mcs_list_remove(mcs_list_t *head);
extern mcs_list_t *mcs_list_find(mcs_list_t *head, void *data); extern mcs_list_t *mcs_list_find(mcs_list_t *head, void *data);
extern mcs_list_t *mcs_list_remove_data(mcs_list_t *head, void *data); extern mcs_list_t *mcs_list_remove_data(mcs_list_t *head, void *data);
extern void mcs_list_free(mcs_list_t *head); extern void mcs_list_free(mcs_list_t *head);
/*
* These functions have to do with logging.
*/
typedef void (*mcs_log_func_t)(const char *text);
extern void mcs_log(const char *fmt, ...);
extern void mcs_log_set_log_func(mcs_log_func_t func);
/*
* These functions are utility functions.
*/
extern size_t mcs_strnlen(const char *str, size_t len);
extern char * mcs_strndup(const char *str, size_t len);
extern int mcs_create_directory(const char *path, mode_t mode);
extern size_t mcs_strlcat(char *dest, const char *src, size_t count);
extern size_t mcs_strlcpy(char *dest, const char *src, size_t count);
#endif #endif
 End of changes. 3 change blocks. 
0 lines changed or deleted 19 lines changed or added


 mcs_config.h   mcs_config.h 
/* src/libmcs/mcs_config.h. Generated from mcs_config.h.in by configure. */ /* src/libmcs/mcs_config.h. Generated from mcs_config.h.in by configure. */
/* src/libmcs/mcs_config.h.in. Generated from configure.ac by autoheader. */ /* src/libmcs/mcs_config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if the `closedir' function returns void instead of `int'. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */
/* #undef CLOSEDIR_VOID */ /* #undef CLOSEDIR_VOID */
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR' . /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR' .
*/ */
#define HAVE_DIRENT_H 1 #define HAVE_DIRENT_H 1
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1 #define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `dl' library (-ldl). */ /* Define to 1 if you have the `dl' library (-ldl). */
#define HAVE_LIBDL 1 #define HAVE_LIBDL 1
/* Define to 1 if you have the <limits.h> header file. */ /* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1 #define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */ /* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1 #define HAVE_LOCALE_H 1
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1 #define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
/* #undef HAVE_NDIR_H */ /* #undef HAVE_NDIR_H */
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
/* #undef HAVE_STAT_EMPTY_STRING_BUG */
/* Define to 1 if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define to 1 if you have the <stdint.h> header file. */ /* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1 #define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */ /* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1 #define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */ /* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1 #define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */ /* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1 #define HAVE_STRING_H 1
/* Define to 1 if you have the `strstr' function. */ /* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1 #define HAVE_STRSTR 1
/* Define to 1 if you have the `strtod' function. */
#define HAVE_STRTOD 1
/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR '. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR '.
*/ */
/* #undef HAVE_SYS_DIR_H */ /* #undef HAVE_SYS_DIR_H */
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DI R'. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DI R'.
*/ */
/* #undef HAVE_SYS_NDIR_H */ /* #undef HAVE_SYS_NDIR_H */
/* Define to 1 if you have the <sys/stat.h> header file. */ /* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1 #define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */ /* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */ /* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
/* Define to the address where bug reports for this package should be sent. */ /* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bugs+libmcs@atheme.org" #define PACKAGE_BUGREPORT "bugs+libmcs@atheme.org"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "libmcs" #define PACKAGE_NAME "libmcs"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "libmcs 0.2.1" #define PACKAGE_STRING "libmcs 0.3.1"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "libmcs" #define PACKAGE_TARNAME "libmcs"
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "0.2.1" #define PACKAGE_VERSION "0.3.1"
/* Define the shared module suffix extension on your platform. */
#define SHARED_SUFFIX ".so"
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
/* Define to empty if `const' does not conform to ANSI C. */ /* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */ /* #undef const */
 End of changes. 8 change blocks. 
2 lines changed or deleted 43 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/