#include "erregtypes.h"
#include "erregxml.h"
#include "erreg.h"
Go to the source code of this file.
Defines | |
#define | REG_TOOLBAR_XML_PATH TEMPLATE_DIR "/toolbar.xml" |
#define | REG_TOOLBAR_XSD_PATH TEMPLATE_DIR "/toolbar.xsd" |
Functions | |
regLoad_t | tbRegLoad (regRegistry_t **ppRegistry) |
void | tbRegUnload (regRegistry_t *pRegistry) |
regIconSet_t * | tbRegGetIconSet (regRegistry_t *pRegistry) |
void | tbRegFreeIconSet (regIconSet_t *theIconSet) |
Copyright (C) 2007 iRex Technologies B.V. All rights reserved.
Definition in file erregtoolbar.h.
#define REG_TOOLBAR_XML_PATH TEMPLATE_DIR "/toolbar.xml" |
Definition at line 36 of file erregtoolbar.h.
#define REG_TOOLBAR_XSD_PATH TEMPLATE_DIR "/toolbar.xsd" |
Definition at line 37 of file erregtoolbar.h.
void tbRegFreeIconSet | ( | regIconSet_t * | theIconSet | ) |
Definition at line 116 of file erregtoolbar.c.
00117 { 00118 ERREG_TOOLBAR_LOGPRINTF("entry"); 00119 00120 if (theIconSet) 00121 { 00122 regFreeIconSet(theIconSet); 00123 } 00124 }
regIconSet_t* tbRegGetIconSet | ( | regRegistry_t * | pRegistry | ) |
Definition at line 102 of file erregtoolbar.c.
00103 { 00104 ERREG_TOOLBAR_LOGPRINTF("entry"); 00105 00106 regIconSet_t *theIconSet = NULL; 00107 00108 if (pRegistry) 00109 { 00110 theIconSet = regGetIconSet(pRegistry); 00111 } 00112 00113 return theIconSet; 00114 }
regLoad_t tbRegLoad | ( | regRegistry_t ** | ppRegistry | ) |
Definition at line 63 of file erregtoolbar.c.
00064 { 00065 ERREG_TOOLBAR_LOGPRINTF("entry"); 00066 00067 regRegistry_t* pRegistry = NULL; 00068 regLoad_t ret; 00069 00070 pRegistry = regParseFiles(REG_TOOLBAR_XML_PATH, REG_TOOLBAR_XSD_PATH); 00071 if (pRegistry) 00072 { 00073 ERREG_TOOLBAR_LOGPRINTF("Loading toolbar registry succeeded."); 00074 ret = loadOk_t; 00075 } 00076 else 00077 { 00078 ERREG_TOOLBAR_ERRORPRINTF("Loading toolbar registry failed."); 00079 ret = loadError_t; 00080 } 00081 00082 if (pRegistry) 00083 { 00084 tbRegInitXpathList(pRegistry); 00085 } 00086 00087 *ppRegistry = pRegistry; 00088 return ret; 00089 }
void tbRegUnload | ( | regRegistry_t * | pRegistry | ) |
Definition at line 91 of file erregtoolbar.c.
00092 { 00093 ERREG_TOOLBAR_LOGPRINTF("entry[%p]", pRegistry); 00094 00095 if (pRegistry) 00096 { 00097 tbRegDestroyXpathList(pRegistry); 00098 regDestroy(pRegistry); 00099 } 00100 }