pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
Macros | Typedefs | Functions
cib_native.c File Reference
#include <crm_internal.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/cib/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/mainloop.h>
Include dependency graph for cib_native.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Typedefs

typedef struct cib_native_opaque_s cib_native_opaque_t
 

Functions

int cib_native_perform_op (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, xmlNode **output_data, int call_options)
 
int cib_native_perform_op_delegate (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, xmlNode **output_data, int call_options, const char *user_name)
 
int cib_native_free (cib_t *cib)
 
int cib_native_signoff (cib_t *cib)
 
int cib_native_signon (cib_t *cib, const char *name, enum cib_conn_type type)
 
int cib_native_signon_raw (cib_t *cib, const char *name, enum cib_conn_type type, int *event_fd)
 
int cib_native_set_connection_dnotify (cib_t *cib, void(*dnotify)(gpointer user_data))
 
cib_tcib_native_new (void)
 
int cib_native_register_notification (cib_t *cib, const char *callback, int enabled)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 14 of file cib_native.c.

Typedef Documentation

◆ cib_native_opaque_t

typedef struct cib_native_opaque_s cib_native_opaque_t

Function Documentation

◆ cib_native_free()

int cib_native_free ( cib_t cib)

Definition at line 287 of file cib_native.c.

◆ cib_native_new()

cib_t* cib_native_new ( void  )

Definition at line 56 of file cib_native.c.

◆ cib_native_perform_op()

int cib_native_perform_op ( cib_t cib,
const char *  op,
const char *  host,
const char *  section,
xmlNode *  data,
xmlNode **  output_data,
int  call_options 
)

Definition at line 308 of file cib_native.c.

◆ cib_native_perform_op_delegate()

int cib_native_perform_op_delegate ( cib_t cib,
const char *  op,
const char *  host,
const char *  section,
xmlNode *  data,
xmlNode **  output_data,
int  call_options,
const char *  user_name 
)

Definition at line 316 of file cib_native.c.

◆ cib_native_register_notification()

int cib_native_register_notification ( cib_t cib,
const char *  callback,
int  enabled 
)

Definition at line 469 of file cib_native.c.

◆ cib_native_set_connection_dnotify()

int cib_native_set_connection_dnotify ( cib_t cib,
void(*)(gpointer user_data)  dnotify 
)

Definition at line 453 of file cib_native.c.

◆ cib_native_signoff()

int cib_native_signoff ( cib_t cib)

Definition at line 256 of file cib_native.c.

◆ cib_native_signon()

int cib_native_signon ( cib_t cib,
const char *  name,
enum cib_conn_type  type 
)

Definition at line 93 of file cib_native.c.

◆ cib_native_signon_raw()

int cib_native_signon_raw ( cib_t cib,
const char *  name,
enum cib_conn_type  type,
int *  event_fd 
)

Definition at line 156 of file cib_native.c.