Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

gs_imp.h File Reference


Detailed Description

data types used in the implementation of the Global Settings server.

#include <pthread.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <glib.h>
#include "hiker/global_settings.h"
#include "hiker/ipc.h"
#include "proc_id.h"

Go to the source code of this file.

Data Structures

struct  _AlpGlobalSettingsEntryIterator

Defines

#define ALP_STATUS_GLOBAL_SETTINGS_BUSY   ((alp_status_t) ALP_CLASS_GLOBAL_SETTINGS | 0x40000000)
#define CHECK_ARG(arg)
#define CHECK_ARG_VOID_RETURN(arg)
#define CHECK_CONTEXT   CHECK_ARG(context)
#define CHECK_ITERATOR   CHECK_ARG(iterator)
#define CHECK_TYPE(v, t)

Functions

void free_glist (GList *list)
void free_gslist (GSList *list)
void gstring_copy (GString **gs, const gchar *src)
void global_settings_value_clean (AlpGlobalSettingsValue *value)
void global_settings_entry_clean (AlpGlobalSettingsEntry *entry)
void global_settings_value_copy (const AlpGlobalSettingsValue *src, AlpGlobalSettingsValue *des)
void global_settings_value_list_to_GSList (const AlpGlobalSettingsValue *value, GSList **list)
void global_settings_list_copy (const GList *src, GList **dst)
AlpGlobalSettingsValueglobal_settings_value_duplicate (const AlpGlobalSettingsValue *src)
AlpGlobalSettingsEntryalp_global_settings_entry_alloc (void)
 allocate a new entry struct
void alp_global_settings_entry_free (AlpGlobalSettingsEntry *e)
 decllocates a previously allocated entry object
AlpGlobalSettingsValuealp_global_settings_value_alloc (void)
 allocate a new value struct
void alp_global_settings_value_free (AlpGlobalSettingsValue *v)
 decllocates a previously allocated value object
void alp_global_settings_entry_iterator_free (AlpGlobalSettingsEntryIterator *)
const char * gs_type_to_string (AlpGlobalSettingsValueType t)
const char * gs_bool_to_string (gboolean b)
int gs_pack_value (AlpMessage *msg, const AlpGlobalSettingsValue *v)
int gs_unpack_value (AlpMessage *msg, AlpGlobalSettingsValue *v)
void gs_start_pack (AlpMessage **msg, ALP_GLOBAL_SETTINGS_RPC_PROCS)
int gs_end_pack (AlpMessage *msg)
int gs_svr_pack_entry_iterator (AlpMessage *msg, const AlpGlobalSettingsEntryIterator *iterator)
int gs_svr_unpack_entry_iterator (AlpMessage *msg, AlpGlobalSettingsEntryIterator *iterator)
int is_dir (const char *path)
void normalize_path (char *path)
int form_absolute_path (const char *cwd, const char *key, char result[PATH_MAX])
const char * status_to_string (int status)


Define Documentation

#define ALP_STATUS_GLOBAL_SETTINGS_BUSY   ((alp_status_t) ALP_CLASS_GLOBAL_SETTINGS | 0x40000000)
 

#define CHECK_ARG arg   ) 
 

Value:

if ((arg) == NULL)\
    {\
        ALP_TM(T(ALP_CLASS_GLOBAL_SETTINGS, "zero " #arg " pointer supplied"));\
        return ALP_STATUS_GLOBAL_SETTINGS_ARGUMENT_INVALID ;\
    }

#define CHECK_ARG_VOID_RETURN arg   ) 
 

Value:

if ((arg) == NULL)\
    {\
        ALP_TM(T(ALP_CLASS_GLOBAL_SETTINGS, "zero " #arg " pointer supplied"));\
        return ;\
    }

#define CHECK_CONTEXT   CHECK_ARG(context)
 

#define CHECK_ITERATOR   CHECK_ARG(iterator)
 

#define CHECK_TYPE v,
 ) 
 

Value:

if ((v)->type != (t))\
    {\
        ALP_TM(T(ALP_CLASS_GLOBAL_SETTINGS, "incorrect value type"));\
        return ALP_STATUS_GLOBAL_SETTINGS_INCORRECT_TYPE ;\
    }


Function Documentation

void alp_global_settings_entry_iterator_free AlpGlobalSettingsEntryIterator  ) 
 

int form_absolute_path const char *  cwd,
const char *  key,
char  result[PATH_MAX]
 

void free_glist GList *  list  ) 
 

void free_gslist GSList *  list  ) 
 

void global_settings_entry_clean AlpGlobalSettingsEntry entry  ) 
 

void global_settings_list_copy const GList *  src,
GList **  dst
 

void global_settings_value_clean AlpGlobalSettingsValue value  ) 
 

void global_settings_value_copy const AlpGlobalSettingsValue src,
AlpGlobalSettingsValue des
 

AlpGlobalSettingsValue* global_settings_value_duplicate const AlpGlobalSettingsValue src  ) 
 

void global_settings_value_list_to_GSList const AlpGlobalSettingsValue value,
GSList **  list
 

const char* gs_bool_to_string gboolean  b  ) 
 

int gs_end_pack AlpMessage msg  ) 
 

int gs_pack_value AlpMessage msg,
const AlpGlobalSettingsValue v
 

void gs_start_pack AlpMessage **  msg,
ALP_GLOBAL_SETTINGS_RPC_PROCS 
 

int gs_svr_pack_entry_iterator AlpMessage msg,
const AlpGlobalSettingsEntryIterator iterator
 

int gs_svr_unpack_entry_iterator AlpMessage msg,
AlpGlobalSettingsEntryIterator iterator
 

const char* gs_type_to_string AlpGlobalSettingsValueType  t  ) 
 

int gs_unpack_value AlpMessage msg,
AlpGlobalSettingsValue v
 

void gstring_copy GString **  gs,
const gchar *  src
 

int is_dir const char *  path  ) 
 

void normalize_path char *  path  ) 
 

const char* status_to_string int  status  ) 
 


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4