src/misc/ngx_cpp_test_module.cpp - nginx-1.7.10

Functions defined

Source code


  1. // stub module to test header files' C++ compatibility

  2. extern "C" {
  3.   #include <ngx_config.h>
  4.   #include <ngx_core.h>
  5.   #include <ngx_event.h>
  6.   #include <ngx_event_connect.h>
  7.   #include <ngx_event_pipe.h>

  8.   #include <ngx_http.h>

  9.   #include <ngx_mail.h>
  10.   #include <ngx_mail_pop3_module.h>
  11.   #include <ngx_mail_imap_module.h>
  12.   #include <ngx_mail_smtp_module.h>
  13. }

  14. // nginx header files should go before other, because they define 64-bit off_t
  15. // #include <string>


  16. void ngx_cpp_test_handler(void *data);

  17. void
  18. ngx_cpp_test_handler(void *data)
  19. {
  20.     return;
  21. }