Changeset 579 for trunk/zoo-project/zoo-kernel/service_internal.h
- Timestamp:
- Feb 12, 2015, 5:01:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.h
r578 r579 1 /* *1 /* 2 2 * Author : Gérald FENOY 3 3 * … … 28 28 #pragma once 29 29 30 /** 31 * The default service url (overriden by serverAddress) 32 */ 30 33 #define DEFAULT_SERVICE_URL "http://www.zoo-project.org/" 34 /** 35 * The time size 36 */ 31 37 #define TIME_SIZE 40 32 38 33 39 #include <libintl.h> 34 40 #include <locale.h> 41 /** 42 * ZOO-Kernel internal messages translation function 43 */ 35 44 #define _(String) dgettext ("zoo-kernel",String) 45 /** 46 * ZOO-Services messages translation function 47 */ 36 48 #define _ss(String) dgettext ("zoo-services",String) 37 49 50 /** 51 * ZOO-Kernel was unable to create a lock 52 */ 38 53 #define ZOO_LOCK_CREATE_FAILED -4 54 /** 55 * ZOO-Kernel was unable to acquire a lock 56 */ 39 57 #define ZOO_LOCK_ACQUIRE_FAILED -5 58 /** 59 * ZOO-Kernel was unable to release a lock 60 */ 40 61 #define ZOO_LOCK_RELEASE_FAILED -6 41 62 … … 89 110 #include <libxml/xpath.h> 90 111 112 /** 113 * Maximum number of XML namespaces 114 */ 115 #define ZOO_NS_MAX 10 116 /** 117 * Maximum number of XML docs 118 */ 119 #define ZOO_DOC_MAX 20 120 121 /** 122 * Global char* to store the serverAddress value of the mmmmmain section 123 */ 91 124 static char* SERVICE_URL; 92 static xmlNsPtr usedNs[10]; 93 static char* nsName[10]; 94 static xmlDocPtr iDocs[10]; 125 /** 126 * Array of xmlNsPtr storing all used XML namespace 127 */ 128 static xmlNsPtr usedNs[ZOO_NS_MAX]; 129 /** 130 * Array storing names of the used XML namespace 131 */ 132 static char* nsName[ZOO_NS_MAX]; 133 /** 134 * Number of XML namespaces 135 */ 95 136 static int nbNs=0; 137 /** 138 * Array of xmlDocPtr storing XML docs 139 */ 140 static xmlDocPtr iDocs[ZOO_DOC_MAX]; 141 /** 142 * Number of XML docs 143 */ 96 144 static int nbDocs=0; 97 145 … … 107 155 char* getStatus(int); 108 156 int removeShmLock(maps*, int); 157 /** 158 * Cross platform type used for Lock identifier 159 */ 109 160 #ifndef WIN32 110 161 #define semid int
Note: See TracChangeset
for help on using the changeset viewer.