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

util.c File Reference

#include <pthread.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <glib.h>
#include "hiker/syspaths.h"
#include "hiker/traces.h"
#include "hiker/fail.h"
#include "hiker/global_settings.h"
#include "gs_imp.h"
#include "sqlfs.h"

Functions

void free_glist (GList *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_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_clean (AlpGlobalSettingsValue *v)
 decllocates resources used by a value object but not the value object itself
void alp_global_settings_value_free (AlpGlobalSettingsValue *v)
 decllocates a previously allocated value object
void alp_global_settings_value_list_free (GList *l)
 decllocates a list of value obbjects; the list is used to represent a list value
void alp_global_settings_entry_iterator_free (AlpGlobalSettingsEntryIterator *iterator)
alp_status_t alp_global_settings_entry_get_key_value (const AlpGlobalSettingsEntry *entry, gchar *key, guint key_size, AlpGlobalSettingsValue *value)
alp_status_t alp_global_settings_entry_set_key_value (AlpGlobalSettingsEntry *entry, const gchar *key, const AlpGlobalSettingsValue *value)
alp_status_t alp_global_settings_value_set_string (AlpGlobalSettingsValue *value, const gchar *string)
alp_status_t alp_global_settings_value_set_int (AlpGlobalSettingsValue *value, gint i)
alp_status_t alp_global_settings_value_set_float (AlpGlobalSettingsValue *value, gdouble f)
alp_status_t alp_global_settings_value_set_bool (AlpGlobalSettingsValue *value, gboolean b)
 create a bool preference value; the old value, if any, is freed
alp_status_t alp_global_settings_value_set_list (AlpGlobalSettingsValue *value, const GList *list)
 set a list (dir) preference value; the old value, if any, is freed
alp_status_t alp_global_settings_value_get_string (AlpGlobalSettingsValue *value, gchar *string, guint string_size)
alp_status_t alp_global_settings_value_get_int (AlpGlobalSettingsValue *value, gint *i)
alp_status_t alp_global_settings_value_get_float (AlpGlobalSettingsValue *value, gdouble *f)
alp_status_t alp_global_settings_value_get_bool (AlpGlobalSettingsValue *value, gboolean *b)
 get the boolean preference value contained in an value object
alp_status_t alp_global_settings_value_get_list (AlpGlobalSettingsValue *value, GList **list)
 get the dir (list) preference value contained in an value object
const char * gs_type_to_string (AlpGlobalSettingsValueType t)
const char * gs_bool_to_string (gboolean b)
int gs_unpack_value (AlpMessage *msg, AlpGlobalSettingsValue *value)
int gs_pack_value (AlpMessage *msg, const AlpGlobalSettingsValue *value)
void gs_start_pack (AlpMessage **msg, ALP_GLOBAL_SETTINGS_RPC_PROCS proc_id)
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)


Function Documentation

alp_status_t alp_global_settings_entry_get_key_value const AlpGlobalSettingsEntry entry,
gchar *  key,
guint  key_size,
AlpGlobalSettingsValue value
 

void alp_global_settings_entry_iterator_free AlpGlobalSettingsEntryIterator iterator  ) 
 

alp_status_t alp_global_settings_entry_set_key_value AlpGlobalSettingsEntry entry,
const gchar *  key,
const AlpGlobalSettingsValue value
 

alp_status_t alp_global_settings_value_get_float AlpGlobalSettingsValue value,
gdouble *  f
 

alp_status_t alp_global_settings_value_get_int AlpGlobalSettingsValue value,
gint *  i
 

alp_status_t alp_global_settings_value_get_string AlpGlobalSettingsValue value,
gchar *  string,
guint  string_size
 

alp_status_t alp_global_settings_value_set_float AlpGlobalSettingsValue value,
gdouble  f
 

alp_status_t alp_global_settings_value_set_int AlpGlobalSettingsValue value,
gint  i
 

alp_status_t alp_global_settings_value_set_string AlpGlobalSettingsValue value,
const gchar *  string
 

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

void free_glist GList *  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  ) 
 

const char* gs_bool_to_string gboolean  b  ) 
 

int gs_pack_value AlpMessage msg,
const AlpGlobalSettingsValue value
 

void gs_start_pack AlpMessage **  msg,
ALP_GLOBAL_SETTINGS_RPC_PROCS  proc_id
 

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 value
 

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:49 2006 for hiker-0.9 by  doxygen 1.4.4