28 #ifndef __FREEWRL_PLUGIN_UTILS_H__
29 #define __FREEWRL_PLUGIN_UTILS_H__
37 #define SMALLSTRINGSIZE 64
38 #define STRINGSIZE 128
39 #define LARGESTRINGSIZE 256
41 #define PLUGIN_PORT 2009
42 #define PLUGIN_TIMEOUT_SEC 10
43 #define PLUGIN_TIMEOUT_NSEC 0
45 #define PLUGIN_RETRY 2
50 #define SOCKET_ERROR -1000
52 #define SIGNAL_ERROR -1001
54 #define UNUSED(v) ((void) v)
58 char url[FILENAME_MAX];
60 unsigned int notifyCode;
64 const char* XEventToString(
int type);
65 const char* XErrorToString(
int error);
67 void URLencod (
char *dest,
const char *src,
int maxlen);
70 void sendXwinToPlugin(
void);