src/os/win32/ngx_dlopen.h - nginx source code

Macros defined

Source code


  1. /*
  2. * Copyright (C) Maxim Dounin
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_DLOPEN_H_INCLUDED_
  6. #define _NGX_DLOPEN_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. #define NGX_HAVE_DLOPEN  1


  10. #define ngx_dlopen(path)           LoadLibrary((char *) path)
  11. #define ngx_dlopen_n               "LoadLibrary()"

  12. #define ngx_dlsym(handle, symbol)  (void *) GetProcAddress(handle, symbol)
  13. #define ngx_dlsym_n                "GetProcAddress()"

  14. #define ngx_dlclose(handle)        (FreeLibrary(handle) ? 0 : -1)
  15. #define ngx_dlclose_n              "FreeLibrary()"


  16. char *ngx_dlerror(void);


  17. #endif /* _NGX_DLOPEN_H_INCLUDED_ */