Displaying 3 results from an estimated 3 matches for "functions_init".
2020 Mar 23
0
[PATCH nbdkit 2/3] server: Inject API functions for Windows
...FAILURE);
}
+#ifdef WINDOWS_COMPAT
+ init_functions ();
+#endif
#if !ENABLE_LIBFUZZER
threadlocal_init ();
@@ -772,6 +819,7 @@ open_plugin_so (size_t i, const char *name, int short_name)
bool free_filename = false;
void *dl;
struct nbdkit_plugin *(*plugin_init) (void);
+ void *(*functions_init) (struct nbdkit_functions *);
char *error;
if (short_name) {
@@ -797,6 +845,18 @@ open_plugin_so (size_t i, const char *name, int short_name)
/* Initialize the plugin. See dlopen(3) to understand C weirdness. */
dlerror ();
+#ifdef WINDOWS_COMPAT
+ *(void **) (&functions_init)...
2020 Mar 23
6
[PATCH nbdkit 0/3] msys2 support for review
I pushed a few of the msys2 patches upstream. I changed the way that
$(SHARED_LDFLAGS) works so it's more to my liking, and the others were
pushed unchanged. Three patches remain which I'm posting on the
mailing list for proper review.
Rich.
2020 Mar 23
0
[PATCH nbdkit 1/3] include: Function indirection for PE DLL
...turn &(filter); \
+ } \
+ NBDKIT_CXX_LANG_C __declspec(dllexport) \
+ void \
+ functions_init (struct nbdkit_functions *functions) \
+ { \
+ memcpy(&_nbdkit_functions, functions, \
+ sizeof(struct nbdkit_functions)); \
+ }
+#else...