Displaying 2 results from an estimated 2 matches for "_nbdkit_parse_int".
Did you mean:
nbdkit_parse_int
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.
...koverflow.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,
int *r) =
GetProcAddress (GetModuleHandle (NULL), "nbdkit_parse_int");
fprintf (stderr, "nbdkit_parse_int addr = %p\n", _nbdkit_parse_int);
void (*_nbdkit_debug) (const char *msg,...