contentLister/inc/regValue.h File Reference

content lister - registry values More...

#include <liberregxml/erregapi.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FILENAME_ARG   "_FILENAME_"
#define MANIFEST_ARG   "_MANIFEST_"

Functions

void reload_registry (void)
void prepare_registry_write (void)
void do_registry_write (void)
startup_behaviour_t main_get_startup_behaviour (void)


Detailed Description

content lister - registry values

<File description>="">

Definition in file regValue.h.


Define Documentation

#define FILENAME_ARG   "_FILENAME_"

Definition at line 38 of file regValue.h.

#define MANIFEST_ARG   "_MANIFEST_"

Definition at line 39 of file regValue.h.


Function Documentation

void do_registry_write ( void   ) 

Definition at line 279 of file main.c.

00280 {
00281     gboolean       b;
00282     
00283     // verify write lock
00284     g_assert(lock_write == erRegGetLockState());
00285     
00286     // save registry
00287     b = erRegStore();
00288     if (b == FALSE)
00289     {
00290         CL_ERRORPRINTF("erRegStore fails with return code [%d]", b);
00291     }
00292 
00293     // release lock
00294     erRegUnlock();
00295 }

Here is the call graph for this function:

startup_behaviour_t main_get_startup_behaviour ( void   ) 

Definition at line 273 of file main.c.

00274 {
00275     return g_startup_behaviour;
00276 }

void prepare_registry_write ( void   ) 

Definition at line 179 of file main.c.

00180 {
00181     gboolean       b;
00182     regLoad_t      regLoad;
00183     
00184     // acquire write lock
00185     b = erRegWriteLock();
00186     if (b == FALSE)
00187     {
00188         CL_ERRORPRINTF("erRegWriteLock fails with return code [%d]", b);
00189         g_assert_not_reached();
00190     }
00191     
00192     // reload section(s) that may be written
00193     erRegUnload(regBasis_t);
00194     regLoad = erRegLoad(regBasis_t);
00195     if (regLoad == loadError_t)
00196     {
00197         CL_ERRORPRINTF("erRegLoad(regBasis_t) fails with return code [%d]", regLoad);
00198         g_assert_not_reached();
00199     }
00200 }

Here is the call graph for this function:

void reload_registry ( void   ) 

Definition at line 152 of file main.c.

00153 {
00154     gboolean       b;
00155     regLoad_t      regLoad;
00156     
00157     // acquire read lock
00158     b = erRegReadLock();
00159     if (b == FALSE)
00160     {
00161         CL_ERRORPRINTF("erRegReadLock fails with return code [%d]", b);
00162         g_assert_not_reached();
00163     }
00164     
00165     // reload registry sections used
00166     erRegUnload(regBasis_t);
00167     regLoad = erRegLoad(regBasis_t);
00168     if (regLoad == loadError_t)
00169     {
00170         CL_ERRORPRINTF("erRegLoad(regBasis_t) fails with return code [%d]", regLoad);
00171         g_assert_not_reached();
00172     }
00173 
00174     // release lock, all data now in memory
00175     erRegUnlock();
00176 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:13:00 2008 by  doxygen 1.5.6