src/misc/ngx_cpp_test_module.cpp - nginx source code

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.   #include <ngx_stream.h>
  14. }

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


  17. void ngx_cpp_test_handler(void *data);

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