1 2 /* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7 #ifndef _NXT_UNIX_DYLD_H_INCLUDED_ 8 #define _NXT_UNIX_DYLD_H_INCLUDED_ 9 10 11 typedef struct { 12 void *handle; 13 char *name; 14 } nxt_dyld_t; 15 16 17 #define NXT_DYLD_ANY RTLD_DEFAULT 18 19 20 #define \ 21 nxt_dyld_is_valid(dyld) \ 22 ((dyld)->handle != NULL) 23 24 25 NXT_EXPORT nxt_int_t nxt_dyld_load(nxt_dyld_t *dyld); 26 NXT_EXPORT void *nxt_dyld_symbol(nxt_dyld_t *dyld, const char *symbol); 27 NXT_EXPORT nxt_int_t nxt_dyld_unload(nxt_dyld_t *dyld); 28 29 30 #endif /* _NXT_UNIX_DYLD_H_INCLUDED_ */ 31