pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
cib_file.c File Reference
#include <crm_internal.h>
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/cib/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/ipc.h>
#include <crm/common/xml.h>
Include dependency graph for cib_file.c:

Go to the source code of this file.

Macros

#define CIB_FLAG_DIRTY   0x00001
 
#define CIB_FLAG_LIVE   0x00002
 
#define CIB_SERIES   "cib"
 
#define CIB_SERIES_MAX   100
 
#define CIB_SERIES_BZIP
 
#define CIB_LIVE_NAME   CIB_SERIES ".xml"
 

Typedefs

typedef struct cib_file_opaque_s cib_file_opaque_t
 

Functions

int cib_file_perform_op (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, xmlNode **output_data, int call_options)
 
int cib_file_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_file_signon (cib_t *cib, const char *name, enum cib_conn_type type)
 
int cib_file_signoff (cib_t *cib)
 
int cib_file_free (cib_t *cib)
 
int cib_file_read_and_verify (const char *filename, const char *sigfile, xmlNode **root)
 
int cib_file_write_with_digest (xmlNode *cib_root, const char *cib_dirname, const char *cib_filename)
 
cib_tcib_file_new (const char *cib_location)
 

Macro Definition Documentation

#define CIB_FLAG_DIRTY   0x00001

Definition at line 27 of file cib_file.c.

#define CIB_FLAG_LIVE   0x00002

Definition at line 28 of file cib_file.c.

#define CIB_LIVE_NAME   CIB_SERIES ".xml"

Definition at line 170 of file cib_file.c.

#define CIB_SERIES   "cib"

Definition at line 164 of file cib_file.c.

#define CIB_SERIES_BZIP
Value:
FALSE /* Must be false because archived copies are
created with hard links
*/

Definition at line 166 of file cib_file.c.

#define CIB_SERIES_MAX   100

Definition at line 165 of file cib_file.c.

Typedef Documentation

typedef struct cib_file_opaque_s cib_file_opaque_t

Function Documentation

int cib_file_free ( cib_t cib)

Definition at line 703 of file cib_file.c.

cib_t* cib_file_new ( const char *  cib_location)

Definition at line 459 of file cib_file.c.

int cib_file_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 747 of file cib_file.c.

int cib_file_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 755 of file cib_file.c.

int cib_file_read_and_verify ( const char *  filename,
const char *  sigfile,
xmlNode **  root 
)

Definition at line 114 of file cib_file.c.

int cib_file_signoff ( cib_t cib)

Definition at line 661 of file cib_file.c.

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

Definition at line 546 of file cib_file.c.

int cib_file_write_with_digest ( xmlNode *  cib_root,
const char *  cib_dirname,
const char *  cib_filename 
)

Definition at line 328 of file cib_file.c.