… | |
… | |
121 | |
121 | |
122 | /* NEW PLUGIN STUFF STARTS HERE */ |
122 | /* NEW PLUGIN STUFF STARTS HERE */ |
123 | |
123 | |
124 | /*****************************************************************************/ |
124 | /*****************************************************************************/ |
125 | |
125 | |
126 | #ifdef WIN32 |
|
|
127 | static const char * |
|
|
128 | plugins_dlerror (void) |
|
|
129 | { |
|
|
130 | static char buf[256]; |
|
|
131 | DWORD err; |
|
|
132 | char *p; |
|
|
133 | |
|
|
134 | err = GetLastError (); |
|
|
135 | if (FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, buf, sizeof (buf), NULL) == 0) |
|
|
136 | snprintf (buf, sizeof (buf), "error %lu", err); |
|
|
137 | p = strchr (buf, '\0'); |
|
|
138 | while (p > buf && (p[-1] == '\r' || p[-1] == '\n')) |
|
|
139 | p--; |
|
|
140 | *p = '\0'; |
|
|
141 | return buf; |
|
|
142 | } |
|
|
143 | #endif /* WIN32 */ |
|
|
144 | |
|
|
145 | /** |
126 | /** |
146 | * Notify clients about a changed object. |
127 | * Notify clients about a changed object. |
147 | * |
128 | * |
148 | * @param op the object that has changed |
129 | * @param op the object that has changed |
149 | */ |
130 | */ |