Displaying 2 results from an estimated 2 matches for "comment1772764_770374".
2020 Aug 18
2
Re: [PATCH nbdkit 1/9] server: Add libnbdkit.so.
On 8/18/20 8:53 AM, Richard W.M. Jones wrote:
> On Tue, Aug 18, 2020 at 07:48:43AM -0500, Eric Blake wrote:
>>> +extern int nbdkit_main (int argc, char *argv[]);
>>
>> A bit odd to declare this in a .c; but I don't see any existing
>> decent .h to put it in, nor is it worth adding a new one just for
>> this. So it is fine right here.
>
> Yup, better
2020 Aug 19
0
Re: [PATCH nbdkit 1/9] server: Add libnbdkit.so.
...ack every plugin
and filter so that it links to the import library. But there's a
lower-level technique we could use instead:
https://nachtimwald.com/2012/07/15/calling-functions-in-exe-from-plugins-in-windows/
https://stackoverflow.com/questions/770344/visual-c-linking-plugin-dll-against-exe#comment1772764_770374
This is to use GetProcAddress from the plugin (DLL) to get the address
of symbols in nbdkit.exe. It works a bit like dlsym. I hacked
together a test plugin to try this:
static void
load (void)
{
int (*_nbdkit_parse_int) (const char *what,
const char *str,...