Revision 3137
Added by stephane over 13 years ago
scol_glib_net.c | ||
---|---|---|
164 | 164 |
return 0; |
165 | 165 |
} |
166 | 166 |
|
167 |
#if ((defined _WIN32) || (defined __WIN32__)) |
|
168 | 167 |
|
169 |
__declspec (dllexport) int SCOLloadGNET (mmachine m, cbmachine w) |
|
170 |
{ |
|
171 |
int k = 0; |
|
172 |
ww = w; |
|
173 |
mm = m; |
|
174 | 168 |
|
175 |
SCOLinitplugin (w); |
|
176 |
if ((k = SCOLinitGnetClass (m))) return k; |
|
177 |
MMechostr(MSKDEBUG, "\nGNET library loaded !\n"); |
|
178 |
return k; |
|
179 |
} |
|
180 | 169 |
|
181 |
__declspec (dllexport) int SCOLfreeGNET () |
|
182 |
{ |
|
183 |
GnetRelease (); |
|
184 |
return 0; |
|
185 |
} |
|
186 | 170 |
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
/* Version GNU / Linux */ |
|
171 |
#if ((defined _WIN32) || (defined __WIN32__)) |
|
172 |
# define SCOL_GBASE_PLUGIN_EXPORT __declspec (dllexport) |
|
192 | 173 |
#elif ((defined linux) || (defined __linux)) |
174 |
# define SCOL_GBASE_PLUGIN_EXPORT |
|
175 |
#else |
|
176 |
# error no platform supported |
|
177 |
#endif |
|
193 | 178 |
|
194 |
int SCOLloadGNET (mmachine m)
|
|
179 |
SCOL_GBASE_PLUGIN_EXPORT int SCOLloadGBASE(mmachine m, cbmachine w)
|
|
195 | 180 |
{ |
196 |
int k = 0;
|
|
181 |
ww = w;
|
|
197 | 182 |
mm = m; |
198 | 183 |
|
199 |
if ((k = SCOLinitGnetClass (m))) return k; |
|
200 |
MMechostr (MSKDEBUG, "\nGNET library loaded !\n"); |
|
201 |
|
|
202 |
return k; |
|
184 |
SCOLinitplugin(w); |
|
185 |
return SCOLinitGnetClass (m); |
|
203 | 186 |
} |
204 | 187 |
|
205 |
int SCOLfreeGNET ()
|
|
188 |
SCOL_GBASE_PLUGIN_EXPORT int SCOLfreeGBASE()
|
|
206 | 189 |
{ |
207 |
MMechostr(MSKDEBUG, "\nGNET library release !\n"); |
|
208 |
|
|
209 | 190 |
GnetRelease (); |
210 | 191 |
return 0; |
211 | 192 |
} |
212 |
|
|
213 |
#else |
|
214 |
#error no platform supported |
|
215 |
#endif |
Also available in: Unified diff
LIB_GBASE
LIB_GNET
LIB_KEYFILE
LIB_PCRE