You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. /*
  2. * acl.h - Define the ACL interface
  3. *
  4. * Copyright (C) 2013 - 2016, Max Lv <max.c.lv@gmail.com>
  5. *
  6. * This file is part of the shadowsocks-libev.
  7. *
  8. * shadowsocks-libev is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * shadowsocks-libev is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with shadowsocks-libev; see the file COPYING. If not, see
  20. * <http://www.gnu.org/licenses/>.
  21. */
  22. #ifndef _PLUGIN_H
  23. #define _PLUGIN_H
  24. #define PLUGIN_EXIT_ERROR -2
  25. #define PLUGIN_EXIT_NORMAL -1
  26. #define PLUGIN_RUNNING 0
  27. int start_plugin(const char *plugin,
  28. const char *remote_host,
  29. const char *remote_port,
  30. const char *local_host,
  31. const char *local_port);
  32. uint16_t get_local_port();
  33. void stop_plugin();
  34. #endif // _PLUGIN_H