liberregxml/src/erreg.c File Reference

liberreg - ereader registry More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "erreglog.h"
#include "erreg.h"
#include "erregbasis.h"
#include "erregnwprofiles.h"
#include "erregrwlock.h"
#include "erregtoolbar.h"
#include "erregtypes_f.h"

Go to the source code of this file.

Defines

#define registry   g_registry[regBasis_t]
#define registry   g_registry[regNWProfiles_t]
#define registry   g_registry[regToolbar_t]

Functions

regLoad_t erRegLoad (regSection_t section)
void erRegUnload (regSection_t section)
gboolean erRegStore (void)
gboolean erRegValidate (void)
regVersion_terRegGetVersion (void)
gboolean erRegSetVersion (const regVersion_t *theVersion)
void erRegFreeVersion (regVersion_t *theVersion)
regUserProfile_terRegGetUserProfile (void)
gboolean erRegSetUserProfile (const regUserProfile_t *theUserProfile)
void erRegFreeUserProfile (regUserProfile_t *theUserProfile)
regUserSetting_terRegGetUserSetting (void)
gboolean erRegSetUserSetting (const regUserSetting_t *theUserSetting)
void erRegFreeUserSetting (regUserSetting_t *theUserSetting)
regPCConfig_terRegGetPCConfig (void)
regPCProfile_terRegGetPCProfile (const char *ID)
regPCProfile_terRegDupPCProfile (const regPCProfile_t *thePCProfile)
gboolean erRegSetPCConfig (const regPCConfig_t *thePCConfig)
gboolean erRegSetPCProfile (const char *ID, const regPCProfile_t *thePCProfile)
gboolean erRegRemovePCConfig (void)
gboolean erRegRemovePCProfile (const char *ID)
void erRegFreePCConfig (regPCConfig_t *thePCConfig)
void erRegFreePCProfile (regPCProfile_t *thePCProfile)
void erRegGetPCProfiles (regPCConfig_t **pPCConfig, regPCProfile_t ***pPCs)
gboolean erRegSetPCProfiles (const regPCConfig_t *pPCConfig, const regPCProfile_t **pPCs)
void erRegFreePCProfiles (regPCConfig_t *thePCConfig, regPCProfile_t **thePCs)
regAutoConnect_terRegGetAutoConnect (void)
gboolean erRegSetAutoConnect (regAutoConnect_t *theAutoConnect)
void erRegFreeAutoConnect (regAutoConnect_t *theAutoConnect)
regTimedIds_terRegGetTimedIds (void)
gboolean erRegSetTimedIds (regTimedIds_t *theTimedIds)
void erRegFreeTimedIds (regTimedIds_t *theTimedIds)
regContentCategory_terRegGetContentCategory (char *ID)
gboolean erRegSetContentCategory (char *ID, regContentCategory_t *theContentCategory)
void erRegFreeContentCategory (regContentCategory_t *theContentCategory)
regExportMemType_terRegGetExportMemType ()
gboolean erRegSetExportMemType (regExportMemType_t *theExportMemType)
void erRegFreeExportMemType (regExportMemType_t *theExportMemType)
regLastRead_terRegGetLastRead (char *ID)
gboolean erRegSetLastRead (char *ID, regLastRead_t *theLastRead)
void erRegFreeLastRead (regLastRead_t *theLastRead)
regUserAppList_terRegGetUserAppList (void)
void erRegFreeUserAppList (regUserAppList_t *theUserAppList)
regUserApp_terRegGetUserApp (char *uaID)
gboolean erRegSetUserApp (char *uaID, regUserApp_t *theUserApp)
void erRegFreeUserApp (regUserApp_t *theUserApp)
regExtInfoList_terRegGetExtInfoList (const char *extension)
void erRegFreeExtInfoList (regExtInfoList_t *theExtInfoList)
regStartUp_terRegGetStartUp (void)
gboolean erRegSetStartUp (regStartUp_t *theStartUp)
void erRegFreeStartUp (regStartUp_t *theStartUp)
regStartUp_terRegDupStartUp (const regStartUp_t *theStartup)
regPCProfile_terRegGetPCProfileFromList (regPCConfig_t *pPCConfig, regPCProfile_t **pPCs, const char *ID, int *index)
void erRegAddPCProfileToList (regPCConfig_t **pPCConfig, regPCProfile_t ***pPCs, regPCProfile_t *pNewPCProfile)
void erRegDeletePCProfileFromList (regPCConfig_t **pPCConfig, regPCProfile_t ***pPCs, const char *ID)
void erRegSetPCProfileDefault (regPCConfig_t **pPCConfig, regPCProfile_t ***pPCs, const char *ID)
regNetworkConfig_terRegGetNetworkConfig (void)
regNetworkProfile_terRegGetNetworkProfile (const char *ID)
regNetworkProfile_terRegDupNetworkProfile (const regNetworkProfile_t *theNetworkProfile)
gboolean erRegSetNetworkConfig (regNetworkConfig_t *theNetworkConfig)
gboolean erRegSetNetworkProfile (char *ID, regNetworkProfile_t *theNetworkProfile)
void erRegFreeNetworkConfig (regNetworkConfig_t *theNetworkConfig)
void erRegFreeNetworkProfile (regNetworkProfile_t *theNetworkProfile)
gboolean erRegRemoveNetworkConfig (void)
gboolean erRegRemoveNetworkProfile (const char *ID)
void erRegGetNetworkProfiles (regNetworkConfig_t **pNetworkConfig, regNetworkProfile_t ***pNetworks)
gboolean erRegSetNetworkProfiles (const regNetworkConfig_t *pNetworkConfig, const regNetworkProfile_t **pNetworks)
void erRegFreeNetworkProfiles (regNetworkConfig_t *theNetworkConfig, regNetworkProfile_t **theNetworks)
int erRegGetNetworkProfileFromList (regNetworkConfig_t *pNetworkConfig, const char *ID)
regLastConnect_terRegGetLastConnect (void)
gboolean erRegSetLastConnect (regLastConnect_t *theLastConnect)
void erRegFreeLastConnect (regLastConnect_t *theLastConnect)
gboolean erRegGetAutoConnectWlan (void)
gboolean erRegSetAutoConnectWlan (gboolean enable)
void erRegAddNetworkProfileToList (regNetworkConfig_t **pNetworkConfig, regNetworkProfile_t ***pNetworks, regNetworkProfile_t *pNewNetworkProfile)
void erRegDeleteNetworkProfileFromList (regNetworkConfig_t **pNetworkConfig, regNetworkProfile_t ***pNetworks, const char *ID)
void erRegSetNetworkProfileDefault (regNetworkConfig_t **pNetworkConfig, regNetworkProfile_t ***pNetworks, const char *ID)
regIconSet_terRegGetIconSet (void)
void erRegFreeIconSet (regIconSet_t *theIconSet)

Variables

static regRegistry_tg_registry [regUndefined_t]


Detailed Description

liberreg - ereader registry

Copyright (C) 2007 iRex Technologies B.V. All rights reserved.

Definition in file erreg.c.


Define Documentation

#define registry   g_registry[regToolbar_t]

Definition at line 703 of file erreg.c.

#define registry   g_registry[regNWProfiles_t]

Definition at line 703 of file erreg.c.

#define registry   g_registry[regBasis_t]

Definition at line 703 of file erreg.c.


Function Documentation

void erRegAddNetworkProfileToList ( regNetworkConfig_t **  pNetworkConfig,
regNetworkProfile_t ***  pNetworks,
regNetworkProfile_t pNewNetworkProfile 
)

Definition at line 676 of file erreg.c.

00678 {
00679     nwRegAddNetworkProfileToList(pNetworkConfig, pNetworks, pNewNetworkProfile);
00680 }

Here is the call graph for this function:

void erRegAddPCProfileToList ( regPCConfig_t **  pPCConfig,
regPCProfile_t ***  pPCs,
regPCProfile_t pNewPCProfile 
)

Definition at line 531 of file erreg.c.

00533 {
00534     basisRegAddPCProfileToList(pPCConfig, pPCs, pNewPCProfile);
00535 }

Here is the call graph for this function:

void erRegDeleteNetworkProfileFromList ( regNetworkConfig_t **  pNetworkConfig,
regNetworkProfile_t ***  pNetworks,
const char *  ID 
)

Definition at line 682 of file erreg.c.

00684 {
00685     nwRegDeleteNetworkProfileFromList(pNetworkConfig, pNetworks, ID);
00686 }

Here is the call graph for this function:

void erRegDeletePCProfileFromList ( regPCConfig_t **  pPCConfig,
regPCProfile_t ***  pPCs,
const char *  ID 
)

Definition at line 537 of file erreg.c.

00539 {
00540     basisRegDeletePCProfileFromList(pPCConfig, pPCs, ID);
00541 }

Here is the call graph for this function:

regNetworkProfile_t* erRegDupNetworkProfile ( const regNetworkProfile_t theNetworkProfile  ) 

Definition at line 573 of file erreg.c.

00574 {
00575     return regDupNetworkProfile(theNetworkProfile);
00576 }

Here is the call graph for this function:

regPCProfile_t* erRegDupPCProfile ( const regPCProfile_t thePCProfile  ) 

Definition at line 279 of file erreg.c.

00280 {
00281     return regDupPCProfile(thePCProfile);
00282 }

Here is the call graph for this function:

regStartUp_t* erRegDupStartUp ( const regStartUp_t theStartup  ) 

Definition at line 516 of file erreg.c.

00517 {
00518     return regDupStartUp(theStartup);
00519 }

Here is the call graph for this function:

void erRegFreeAutoConnect ( regAutoConnect_t theAutoConnect  ) 

Definition at line 356 of file erreg.c.

00357 {
00358     regFreeAutoConnect(theAutoConnect);
00359 }

Here is the call graph for this function:

void erRegFreeContentCategory ( regContentCategory_t theContentCategory  ) 

Definition at line 396 of file erreg.c.

00397 {
00398     regFreeContentCategory(theContentCategory);
00399 }

Here is the call graph for this function:

void erRegFreeExportMemType ( regExportMemType_t theExportMemType  ) 

Definition at line 416 of file erreg.c.

00417 {
00418     regFreeExportMemType(theExportMemType);
00419 }

Here is the call graph for this function:

void erRegFreeExtInfoList ( regExtInfoList_t theExtInfoList  ) 

NOT TESTED: not used, may not work, maybe needs to be reworked to erRegSetExtInfoList. ** gboolean erRegSetExtInfo(const char *extension, regExtInfo_t *theExtInfo) { g_assert(registry);

return regSetExtInfo(extension, theExtInfo, registry); }

Definition at line 492 of file erreg.c.

00493 {
00494     regFreeExtInfoList(theExtInfoList);    
00495 }

Here is the call graph for this function:

void erRegFreeIconSet ( regIconSet_t theIconSet  ) 

Definition at line 710 of file erreg.c.

00711 {
00712     tbRegFreeIconSet(theIconSet);
00713 }

Here is the call graph for this function:

void erRegFreeLastConnect ( regLastConnect_t theLastConnect  ) 

Definition at line 655 of file erreg.c.

00656 {
00657     regFreeLastConnect(theLastConnect);
00658 }

Here is the call graph for this function:

void erRegFreeLastRead ( regLastRead_t theLastRead  ) 

Definition at line 436 of file erreg.c.

00437 {
00438     regFreeLastRead(theLastRead);
00439 }

Here is the call graph for this function:

void erRegFreeNetworkConfig ( regNetworkConfig_t theNetworkConfig  ) 

Definition at line 592 of file erreg.c.

00593 {
00594     regFreeNetworkConfig(theNetworkConfig);
00595 }

Here is the call graph for this function:

void erRegFreeNetworkProfile ( regNetworkProfile_t theNetworkProfile  ) 

Definition at line 597 of file erreg.c.

00598 {
00599     regFreeNetworkProfile(theNetworkProfile);
00600 }

Here is the call graph for this function:

void erRegFreeNetworkProfiles ( regNetworkConfig_t theNetworkConfig,
regNetworkProfile_t **  theNetworks 
)

Definition at line 630 of file erreg.c.

00631 {
00632      regFreeNetworkProfiles(theNetworkConfig, theNetworks);
00633 }

Here is the call graph for this function:

void erRegFreePCConfig ( regPCConfig_t thePCConfig  ) 

Definition at line 312 of file erreg.c.

00313 {
00314     regFreePCConfig(thePCConfig);
00315 }

Here is the call graph for this function:

void erRegFreePCProfile ( regPCProfile_t thePCProfile  ) 

Definition at line 317 of file erreg.c.

00318 {
00319     regFreePCProfile(thePCProfile);
00320 }

Here is the call graph for this function:

void erRegFreePCProfiles ( regPCConfig_t thePCConfig,
regPCProfile_t **  thePCs 
)

Definition at line 336 of file erreg.c.

00337 {
00338     regFreePCProfiles(thePCConfig, thePCs);
00339 }

Here is the call graph for this function:

void erRegFreeStartUp ( regStartUp_t theStartUp  ) 

Definition at line 511 of file erreg.c.

00512 {
00513     regFreeStartUp(theStartUp);
00514 }

Here is the call graph for this function:

void erRegFreeTimedIds ( regTimedIds_t theTimedIds  ) 

Definition at line 376 of file erreg.c.

00377 {
00378     regFreeTimedIds(theTimedIds);
00379 }

Here is the call graph for this function:

void erRegFreeUserApp ( regUserApp_t theUserApp  ) 

Definition at line 471 of file erreg.c.

00472 {
00473     regFreeUserApp(theUserApp);
00474 }

Here is the call graph for this function:

void erRegFreeUserAppList ( regUserAppList_t theUserAppList  ) 

Definition at line 451 of file erreg.c.

00452 {
00453     regFreeUserAppList(theUserAppList);
00454 }

Here is the call graph for this function:

void erRegFreeUserProfile ( regUserProfile_t theUserProfile  ) 

Definition at line 240 of file erreg.c.

00241 {
00242     regFreeUserProfile(theUserProfile);
00243 }

Here is the call graph for this function:

void erRegFreeUserSetting ( regUserSetting_t theUserSetting  ) 

Definition at line 260 of file erreg.c.

00261 {
00262     regFreeUserSetting(theUserSetting);
00263 }

Here is the call graph for this function:

void erRegFreeVersion ( regVersion_t theVersion  ) 

Definition at line 220 of file erreg.c.

00221 {
00222     regFreeVersion(theVersion);
00223 }

Here is the call graph for this function:

regAutoConnect_t* erRegGetAutoConnect ( void   ) 

Definition at line 342 of file erreg.c.

00343 {
00344     g_assert(registry);
00345     
00346     return regGetAutoConnect(registry);
00347 }

Here is the call graph for this function:

gboolean erRegGetAutoConnectWlan ( void   ) 

Definition at line 661 of file erreg.c.

00662 {
00663     g_assert(registry);
00664 
00665     return regGetAutoConnectWlan(registry);
00666 }

Here is the call graph for this function:

regContentCategory_t* erRegGetContentCategory ( char *  ID  ) 

Definition at line 382 of file erreg.c.

00383 {
00384     g_assert(registry);
00385     
00386     return regGetContentCategory(ID, registry);
00387 }

Here is the call graph for this function:

regExportMemType_t* erRegGetExportMemType (  ) 

Definition at line 402 of file erreg.c.

00403 {
00404     g_assert(registry);
00405     
00406     return regGetExportMemType(registry);
00407 }

Here is the call graph for this function:

regExtInfoList_t* erRegGetExtInfoList ( const char *  extension  ) 

Definition at line 476 of file erreg.c.

00477 {
00478     g_assert(registry);
00479 
00480     return regGetExtInfoList(extension, registry);
00481 }

Here is the call graph for this function:

regIconSet_t* erRegGetIconSet ( void   ) 

Definition at line 705 of file erreg.c.

00706 {
00707     return tbRegGetIconSet(registry);
00708 }

Here is the call graph for this function:

regLastConnect_t* erRegGetLastConnect ( void   ) 

Definition at line 641 of file erreg.c.

00642 {
00643     g_assert(registry);
00644 
00645     return regGetLastConnect(registry);
00646 }

Here is the call graph for this function:

regLastRead_t* erRegGetLastRead ( char *  ID  ) 

Definition at line 422 of file erreg.c.

00423 {
00424     g_assert(registry);
00425     
00426     return regGetLastRead(ID, registry);
00427 }

Here is the call graph for this function:

regNetworkConfig_t* erRegGetNetworkConfig ( void   ) 

Definition at line 559 of file erreg.c.

00560 {
00561     g_assert(registry);
00562 
00563     return regGetNetworkConfig(registry);
00564 }

Here is the call graph for this function:

regNetworkProfile_t* erRegGetNetworkProfile ( const char *  ID  ) 

Definition at line 566 of file erreg.c.

00567 {
00568     g_assert(registry);
00569 
00570      return regGetNetworkProfile(ID, registry);
00571 }

Here is the call graph for this function:

int erRegGetNetworkProfileFromList ( regNetworkConfig_t pNetworkConfig,
const char *  ID 
)

Definition at line 635 of file erreg.c.

00636 {
00637     return nwRegGetNetworkProfileFromList(pNetworkConfig, ID);
00638 }

Here is the call graph for this function:

void erRegGetNetworkProfiles ( regNetworkConfig_t **  pNetworkConfig,
regNetworkProfile_t ***  pNetworks 
)

Definition at line 616 of file erreg.c.

00617 {  
00618     g_assert(registry);
00619 
00620     regGetNetworkProfiles(pNetworkConfig, pNetworks, registry);
00621 }

Here is the call graph for this function:

regPCConfig_t* erRegGetPCConfig ( void   ) 

Definition at line 265 of file erreg.c.

00266 {
00267     g_assert(registry);
00268     
00269     return regGetPCConfig(registry);
00270 }

Here is the call graph for this function:

regPCProfile_t* erRegGetPCProfile ( const char *  ID  ) 

Definition at line 272 of file erreg.c.

00273 {
00274     g_assert(registry);
00275     
00276     return regGetPCProfile(ID, registry);
00277 }

Here is the call graph for this function:

regPCProfile_t* erRegGetPCProfileFromList ( regPCConfig_t pPCConfig,
regPCProfile_t **  pPCs,
const char *  ID,
int *  index 
)

Definition at line 525 of file erreg.c.

00527 {
00528     return basisRegGetPCProfileFromList(pPCConfig, pPCs, ID, index);
00529 }

Here is the call graph for this function:

void erRegGetPCProfiles ( regPCConfig_t **  pPCConfig,
regPCProfile_t ***  pPCs 
)

Definition at line 322 of file erreg.c.

00323 {
00324     g_assert(registry);
00325     
00326     regGetPCProfiles(pPCConfig, pPCs, registry);
00327 }

Here is the call graph for this function:

regStartUp_t* erRegGetStartUp ( void   ) 

Definition at line 497 of file erreg.c.

00498 {
00499     g_assert(registry);
00500     
00501     return regGetStartUp(registry);
00502 }

Here is the call graph for this function:

regTimedIds_t* erRegGetTimedIds ( void   ) 

Definition at line 362 of file erreg.c.

00363 {
00364     g_assert(registry);
00365     
00366     return regGetTimedIds(registry);
00367 }

Here is the call graph for this function:

regUserApp_t* erRegGetUserApp ( char *  uaID  ) 

Definition at line 457 of file erreg.c.

00458 {
00459     g_assert(registry);
00460     
00461     return regGetUserApp(uaID, registry);
00462 }

Here is the call graph for this function:

regUserAppList_t* erRegGetUserAppList ( void   ) 

Definition at line 442 of file erreg.c.

00443 {
00444     g_assert(registry);
00445     
00446     return regGetUserAppList(registry);
00447 }

Here is the call graph for this function:

regUserProfile_t* erRegGetUserProfile ( void   ) 

Definition at line 226 of file erreg.c.

00227 {
00228     g_assert(registry);
00229     
00230     return regGetUserProfile(registry);
00231 }

Here is the call graph for this function:

regUserSetting_t* erRegGetUserSetting ( void   ) 

Definition at line 246 of file erreg.c.

00247 {
00248     g_assert(registry);
00249     
00250     return regGetUserSetting(registry);
00251 }

Here is the call graph for this function:

regVersion_t* erRegGetVersion ( void   ) 

Definition at line 206 of file erreg.c.

00207 {
00208     g_assert(registry);
00209     
00210     return regGetVersion(registry);
00211 }

Here is the call graph for this function:

regLoad_t erRegLoad ( regSection_t  section  ) 

Definition at line 51 of file erreg.c.

00052 {
00053     ERREG_LOGPRINTF("entry: section [%d]", section);
00054 
00055     g_assert(section >= 0  &&  section <= regUndefined_t);
00056     g_assert(g_registry[section] == NULL);
00057 
00058     // at least read-lock required to load registry
00059     lock_state_t lock_state = erRegGetLockState();
00060     g_assert(lock_state == lock_read || lock_state == lock_write);
00061     
00062     regLoad_t ret = loadError_t;
00063     regRegistry_t** ppRegistry = &g_registry[section];
00064     
00065     switch (section)
00066     {
00067         case regBasis_t:
00068             ret = basisRegLoad(ppRegistry);
00069             break;
00070             
00071         case regToolbar_t:
00072             ret = tbRegLoad(ppRegistry);
00073             break;
00074             
00075         case regNWProfiles_t:
00076             ret = nwRegLoad(ppRegistry);
00077             break;
00078 
00079         default:
00080             ERREG_LOGPRINTF("Invalid section [%d].", section);
00081     }
00082     if (*ppRegistry)
00083     {
00084         (*ppRegistry)->section = section;
00085     }
00086 
00087     return ret;
00088 }

Here is the call graph for this function:

gboolean erRegRemoveNetworkConfig ( void   ) 

Definition at line 602 of file erreg.c.

00603 {
00604     g_assert(registry);
00605 
00606     return regRemoveNetworkConfig(registry);
00607 }

Here is the call graph for this function:

gboolean erRegRemoveNetworkProfile ( const char *  ID  ) 

Definition at line 609 of file erreg.c.

00610 {
00611     g_assert(registry);
00612 
00613     return regRemoveNetworkProfile(ID, registry);
00614 }

Here is the call graph for this function:

gboolean erRegRemovePCConfig ( void   ) 

Definition at line 298 of file erreg.c.

00299 {
00300     g_assert(registry);
00301     
00302     return regRemovePCConfig(registry);
00303 }

Here is the call graph for this function:

gboolean erRegRemovePCProfile ( const char *  ID  ) 

Definition at line 305 of file erreg.c.

00306 {
00307     g_assert(registry);
00308     
00309     return regRemovePCProfile(ID, registry);
00310 }

Here is the call graph for this function:

gboolean erRegSetAutoConnect ( regAutoConnect_t theAutoConnect  ) 

Definition at line 349 of file erreg.c.

00350 {
00351     g_assert(registry);
00352     
00353     return regSetAutoConnect(theAutoConnect, registry);
00354 }

Here is the call graph for this function:

gboolean erRegSetAutoConnectWlan ( gboolean  enable  ) 

Definition at line 668 of file erreg.c.

00669 {
00670     g_assert(registry);
00671 
00672     return regSetAutoConnectWlan(enable, registry);
00673 }

Here is the call graph for this function:

gboolean erRegSetContentCategory ( char *  ID,
regContentCategory_t theContentCategory 
)

Definition at line 389 of file erreg.c.

00390 {
00391     g_assert(registry);
00392     
00393     return regSetContentCategory(ID, theContentCategory, registry);
00394 }

Here is the call graph for this function:

gboolean erRegSetExportMemType ( regExportMemType_t theExportMemType  ) 

Definition at line 409 of file erreg.c.

00410 {
00411     g_assert(registry);
00412     
00413     return regSetExportMemType(theExportMemType, registry);
00414 }

Here is the call graph for this function:

gboolean erRegSetLastConnect ( regLastConnect_t theLastConnect  ) 

Definition at line 648 of file erreg.c.

00649 {
00650     g_assert(registry);
00651 
00652     return regSetLastConnect(theLastConnect, registry);
00653 }

Here is the call graph for this function:

gboolean erRegSetLastRead ( char *  ID,
regLastRead_t theLastRead 
)

Definition at line 429 of file erreg.c.

00430 {
00431     g_assert(registry);
00432     
00433     return regSetLastRead(ID, theLastRead, registry);
00434 }

Here is the call graph for this function:

gboolean erRegSetNetworkConfig ( regNetworkConfig_t theNetworkConfig  ) 

Definition at line 578 of file erreg.c.

00579 {
00580     g_assert(registry);
00581 
00582     return regSetNetworkConfig(theNetworkConfig, registry);
00583 }

Here is the call graph for this function:

gboolean erRegSetNetworkProfile ( char *  ID,
regNetworkProfile_t theNetworkProfile 
)

Definition at line 585 of file erreg.c.

00586 {
00587     g_assert(registry);
00588 
00589     return regSetNetworkProfile(ID, theNetworkProfile, registry);
00590 }

Here is the call graph for this function:

void erRegSetNetworkProfileDefault ( regNetworkConfig_t **  pNetworkConfig,
regNetworkProfile_t ***  pNetworks,
const char *  ID 
)

Definition at line 688 of file erreg.c.

00690 {
00691     nwRegSetNetworkProfileDefault(pNetworkConfig, pNetworks, ID);
00692 }

Here is the call graph for this function:

gboolean erRegSetNetworkProfiles ( const regNetworkConfig_t pNetworkConfig,
const regNetworkProfile_t **  pNetworks 
)

Definition at line 623 of file erreg.c.

00624 {
00625     g_assert(registry);
00626 
00627     return regSetNetworkProfiles(pNetworkConfig, pNetworks, registry);
00628 }  

Here is the call graph for this function:

gboolean erRegSetPCConfig ( const regPCConfig_t thePCConfig  ) 

Definition at line 284 of file erreg.c.

00285 {
00286     g_assert(registry);
00287     
00288     return regSetPCConfig(thePCConfig, registry);
00289 }

Here is the call graph for this function:

gboolean erRegSetPCProfile ( const char *  ID,
const regPCProfile_t thePCProfile 
)

Definition at line 291 of file erreg.c.

00292 {
00293     g_assert(registry);
00294     
00295     return regSetPCProfile(ID, thePCProfile, registry);
00296 }

Here is the call graph for this function:

void erRegSetPCProfileDefault ( regPCConfig_t **  pPCConfig,
regPCProfile_t ***  pPCs,
const char *  ID 
)

Definition at line 544 of file erreg.c.

00546 {
00547     basisRegSetPCProfileDefault(pPCConfig, pPCs, ID);
00548 }

Here is the call graph for this function:

gboolean erRegSetPCProfiles ( const regPCConfig_t pPCConfig,
const regPCProfile_t **  pPCs 
)

Definition at line 329 of file erreg.c.

00330 {
00331     g_assert(registry);
00332     
00333     return regSetPCProfiles(pPCConfig, pPCs, registry);
00334 }

Here is the call graph for this function:

gboolean erRegSetStartUp ( regStartUp_t theStartUp  ) 

Definition at line 504 of file erreg.c.

00505 {
00506     g_assert(registry);
00507     
00508     return regSetStartUp(theStartUp, registry);
00509 }

Here is the call graph for this function:

gboolean erRegSetTimedIds ( regTimedIds_t theTimedIds  ) 

Definition at line 369 of file erreg.c.

00370 {
00371     g_assert(registry);
00372     
00373     return regSetTimedIds(theTimedIds, registry);
00374 }

Here is the call graph for this function:

gboolean erRegSetUserApp ( char *  uaID,
regUserApp_t theUserApp 
)

Definition at line 464 of file erreg.c.

00465 {
00466     g_assert(registry);
00467     
00468     return regSetUserApp(uaID, theUserApp, registry);
00469 }

Here is the call graph for this function:

gboolean erRegSetUserProfile ( const regUserProfile_t theUserProfile  ) 

Definition at line 233 of file erreg.c.

00234 {
00235     g_assert(registry);
00236     
00237     return regSetUserProfile(theUserProfile, registry);
00238 }

Here is the call graph for this function:

gboolean erRegSetUserSetting ( const regUserSetting_t theUserSetting  ) 

Definition at line 253 of file erreg.c.

00254 {
00255     g_assert(registry);
00256     
00257     return regSetUserSetting(theUserSetting, registry);
00258 }

Here is the call graph for this function:

gboolean erRegSetVersion ( const regVersion_t theVersion  ) 

Definition at line 213 of file erreg.c.

00214 {
00215     g_assert(registry);
00216 
00217     return regSetVersion(theVersion, registry);
00218 }

Here is the call graph for this function:

gboolean erRegStore ( void   ) 

Definition at line 121 of file erreg.c.

00122 {
00123     ERREG_LOGPRINTF("entry");
00124 
00125     // write-lock required to store registry
00126     g_assert(erRegGetLockState() == lock_write);
00127 
00128     gboolean bRet = TRUE;  // TRUE = ok
00129     gboolean b;
00130     regRegistry_t *reg;
00131 
00132     // save basis registry
00133     reg = g_registry[regBasis_t];
00134     if (reg)
00135     {
00136         b = basisRegStore(reg);
00137         if (b == FALSE)
00138         {
00139             bRet = FALSE;
00140         }
00141     }
00142 
00143     // never save toolbar registry
00144 
00145     // save network profiles
00146     reg = g_registry[regNWProfiles_t];
00147     if (reg)
00148     {
00149         b = nwRegStore(reg);
00150         if (b == FALSE)
00151         {
00152             bRet = FALSE;
00153         }
00154     }
00155 
00156     ERREG_LOGPRINTF("leave: bRet [%d]", bRet);
00157     return bRet;
00158 }

Here is the call graph for this function:

void erRegUnload ( regSection_t  section  ) 

Definition at line 91 of file erreg.c.

00092 {
00093     ERREG_LOGPRINTF("entry: section [%d]", section);
00094  
00095     g_assert(section >= 0  &&  section < regUndefined_t);
00096     g_assert(g_registry[section] != NULL);
00097 
00098     switch (section)
00099     {
00100         case regBasis_t:
00101             basisRegUnload(g_registry[regBasis_t]);
00102             g_registry[regBasis_t] = NULL;
00103             break;
00104             
00105         case regToolbar_t:
00106             tbRegUnload(g_registry[regToolbar_t]);
00107             g_registry[regToolbar_t] = NULL;
00108             break;
00109 
00110         case regNWProfiles_t:
00111             nwRegUnload(g_registry[regNWProfiles_t]);
00112             g_registry[regNWProfiles_t] = NULL;
00113             break;
00114 
00115         default:
00116             ERREG_LOGPRINTF("Invalid section [%d].", section);
00117     }
00118 }

Here is the call graph for this function:

gboolean erRegValidate ( void   ) 

Definition at line 161 of file erreg.c.

00162 {
00163     ERREG_LOGPRINTF("entry");
00164 
00165     gboolean bRet = TRUE;  // TRUE = ok
00166     gboolean b;
00167     regRegistry_t *reg;
00168 
00169     // validate basis registry
00170     reg = g_registry[regBasis_t];
00171     if (reg)
00172     {
00173         b = regValidate(reg);
00174         if (b == FALSE)
00175         {
00176             bRet = FALSE;
00177         }
00178     }
00179 
00180     // no need to validate toolbar registry, because it will never be saved
00181 
00182     // validate network profiles
00183     reg = g_registry[regNWProfiles_t];
00184     if (reg)
00185     {
00186         b = regValidate(reg);
00187         if (b == FALSE)
00188         {
00189             bRet = FALSE;
00190         }
00191     }
00192 
00193     ERREG_LOGPRINTF("leave: bRet [%d]", bRet);
00194     return bRet;
00195 }

Here is the call graph for this function:


Variable Documentation

regRegistry_t* g_registry[regUndefined_t] [static]

Definition at line 42 of file erreg.c.


Generated on Sun Dec 14 17:12:20 2008 by  doxygen 1.5.6