Skip to content

Commit 2e986ca

Browse files
committed
Test
Signed-off-by: Salil Chandra <[email protected]>
1 parent d496076 commit 2e986ca

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

cdb2api/cdb2api_int.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@
2727
int cdb2_socket_pool_get(cdb2_hndl_tp *hndl, const char *typestr, int dbnum, int *port);
2828
void cdb2_socket_pool_donate_ext(cdb2_hndl_tp *hndl, const char *typestr, int fd, int ttl, int dbnum);
2929

30+
#ifndef WITH_DL_LIBS
31+
#define WITH_DL_LIBS 0
32+
#endif
33+
34+
#if WITH_DL_LIBS
35+
void cdb2_set_install_libs(void (*ptr)(const char *));
36+
void cdb2_set_uninstall_libs(void (*ptr)(const char *));
37+
#endif
38+
3039
#endif

tests/tools/api_libs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#include <stdio.h>
22
#include <stdlib.h>
33
#include <cdb2api.h>
4+
#include <cdb2api_int.h>
45

56
typedef void (lib_cb)(void);
6-
void cdb2_set_install_libs(lib_cb *);
7-
void cdb2_set_uninstall_libs(lib_cb *);
87

98
static void *my_open_hook(cdb2_hndl_tp *hndl, void *user_arg, int argc, void **argv)
109
{

0 commit comments

Comments
 (0)