icftypes.idl 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * Types for the ICF api
  3. *
  4. * Copyright 2007 Jeff Latimer
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. *
  20. */
  21. import "wtypes.idl";
  22. typedef enum NET_FW_PROFILE_TYPE_
  23. {
  24. NET_FW_PROFILE_DOMAIN,
  25. NET_FW_PROFILE_STANDARD,
  26. NET_FW_PROFILE_CURRENT,
  27. NET_FW_PROFILE_TYPE_MAX
  28. } NET_FW_PROFILE_TYPE;
  29. typedef enum NET_FW_PROFILE_TYPE2_
  30. {
  31. NET_FW_PROFILE2_DOMAIN = 0x0001,
  32. NET_FW_PROFILE2_PRIVATE = 0x0002,
  33. NET_FW_PROFILE2_PUBLIC = 0x0004,
  34. NET_FW_PROFILE2_ALL = 0x7FFFFFFF
  35. } NET_FW_PROFILE_TYPE2;
  36. typedef enum NET_FW_IP_VERSION_
  37. {
  38. NET_FW_IP_VERSION_V4,
  39. NET_FW_IP_VERSION_V6,
  40. NET_FW_IP_VERSION_ANY,
  41. NET_FW_IP_VERSION_MAX
  42. } NET_FW_IP_VERSION;
  43. typedef enum NET_FW_POLICY_TYPE_
  44. {
  45. NET_FW_POLICY_GROUP,
  46. NET_FW_POLICY_LOCAL,
  47. NET_FW_POLICY_EFFECTIVE,
  48. NET_FW_POLICY_TYPE_MAX
  49. } NET_FW_POLICY_TYPE;
  50. typedef enum NET_FW_SCOPE_
  51. {
  52. NET_FW_SCOPE_ALL,
  53. NET_FW_SCOPE_LOCAL_SUBNET,
  54. NET_FW_SCOPE_CUSTOM,
  55. NET_FW_SCOPE_MAX
  56. } NET_FW_SCOPE;
  57. typedef enum NET_FW_SERVICE_TYPE_
  58. {
  59. NET_FW_SERVICE_FILE_AND_PRINT,
  60. NET_FW_SERVICE_UPNP,
  61. NET_FW_SERVICE_REMOTE_DESKTOP,
  62. NET_FW_SERVICE_NONE,
  63. NET_FW_SERVICE_TYPE_MAX
  64. } NET_FW_SERVICE_TYPE;
  65. typedef enum NET_FW_IP_PROTOCOL_
  66. {
  67. NET_FW_IP_PROTOCOL_TCP = 6,
  68. NET_FW_IP_PROTOCOL_UDP = 17
  69. } NET_FW_IP_PROTOCOL;
  70. typedef enum NET_FW_RULE_DIRECTION_
  71. {
  72. NET_FW_RULE_DIR_IN = 1,
  73. NET_FW_RULE_DIR_OUT,
  74. NET_FW_RULE_DIR_MAX
  75. } NET_FW_RULE_DIRECTION;
  76. typedef enum NET_FW_ACTION_
  77. {
  78. NET_FW_ACTION_BLOCK,
  79. NET_FW_ACTION_ALLOW,
  80. NET_FW_ACTION_MAX
  81. } NET_FW_ACTION;
  82. typedef enum NET_FW_MODIFY_STATE_
  83. {
  84. NET_FW_MODIFY_STATE_OK,
  85. NET_FW_MODIFY_STATE_GP_OVERRIDE,
  86. NET_FW_MODIFY_STATE_INBOUND_BLOCKED
  87. } NET_FW_MODIFY_STATE;