mcs.h   mcs.h 
skipping to change at line 31 skipping to change at line 31
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*
* $Id: mcs.h 101 2007-01-18 03:41:41Z nenolod $
*/ */
#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/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 <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 {
void *handle; void *handle;
char *name; char *name;
skipping to change at line 134 skipping to change at line 134
typedef struct mcs_list_ { typedef struct mcs_list_ {
struct mcs_list_ *prev; struct mcs_list_ *prev;
struct mcs_list_ *next; struct mcs_list_ *next;
void *data; void *data;
} mcs_list_t; } 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);
/* /*
* These functions have to do with registration of MCS backends. * These functions have to do with registration of MCS backends.
*/ */
extern mcs_response_t mcs_backend_register(mcs_backend_t *backend); extern mcs_response_t mcs_backend_register(mcs_backend_t *backend);
extern mcs_response_t mcs_backend_unregister(mcs_backend_t *backend); extern mcs_response_t mcs_backend_unregister(mcs_backend_t *backend);
extern mcs_list_t * mcs_backend_get_list(void);
extern char * mcs_backend_select(void);
/* /*
* These functions provide the public interface for creating and closing MC S * These functions provide the public interface for creating and closing MC S
* handles. * handles.
* *
* Please note that if a handle is not closed, the data may not be saved to * Please note that if a handle is not closed, the data may not be saved to
* disk. * disk.
*/ */
extern mcs_handle_t *mcs_new(char *domain); extern mcs_handle_t *mcs_new(char *domain);
extern void mcs_destroy(mcs_handle_t *handle); extern void mcs_destroy(mcs_handle_t *handle);
 End of changes. 4 change blocks. 
4 lines changed or deleted 7 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/