|
@@ -162,7 +162,21 @@ typedef void (*TRAFCOUNTFUNC)(struct clientparam * param);
|
|
|
typedef void * (*EXTENDFUNC) (struct node *node);
|
|
typedef void * (*EXTENDFUNC) (struct node *node);
|
|
|
typedef void (*CBFUNC)(void *cb, char * buf, int inbuf);
|
|
typedef void (*CBFUNC)(void *cb, char * buf, int inbuf);
|
|
|
typedef void (*PRINTFUNC) (struct node *node, CBFUNC cbf, void*cb);
|
|
typedef void (*PRINTFUNC) (struct node *node, CBFUNC cbf, void*cb);
|
|
|
-typedef int (*PLUGINFUNC) (struct pluginlink *pluginlink, int argc, char** argv);
|
|
|
|
|
|
|
+
|
|
|
|
|
+#ifdef WIN32
|
|
|
|
|
+
|
|
|
|
|
+#define PLUGINAPI __declspec(dllexport)
|
|
|
|
|
+typedef int (__cdecl *PLUGINFUNC) (struct pluginlink *pluginlink, int argc, char** argv);
|
|
|
|
|
+#define PLUGINCALL __cdecl
|
|
|
|
|
+
|
|
|
|
|
+#else
|
|
|
|
|
+
|
|
|
|
|
+#define PLUGINCALL
|
|
|
|
|
+#define PLUGINAPI
|
|
|
|
|
+typedef int (*PLUGINFUNC)(struct pluginlink *pluginlink, int argc, char** argv);
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
|
|
|
struct auth {
|
|
struct auth {
|
|
|
struct auth *next;
|
|
struct auth *next;
|
|
@@ -752,8 +766,6 @@ typedef enum {
|
|
|
TYPE_SERVER
|
|
TYPE_SERVER
|
|
|
}DATA_TYPE;
|
|
}DATA_TYPE;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|