home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / TeamSpeak / TeamSpeak3-Client-win32-3.0.0.exe / pluginsdk / include / public_errors.h < prev    next >
Encoding:
C/C++ Source or Header  |  2011-08-08  |  7.5 KB  |  123 lines

  1. #ifndef PUBLIC_ERRORS_H
  2. #define PUBLIC_ERRORS_H
  3.  
  4. //The idea here is: the values are 2 bytes wide, the first byte identifies the group, the second the count within that group
  5.  
  6. //general
  7. const unsigned int ERROR_ok                                     = 0x0000;
  8. const unsigned int ERROR_undefined                              = 0x0001;
  9. const unsigned int ERROR_not_implemented                        = 0x0002;
  10. const unsigned int ERROR_ok_no_update                           = 0x0003;
  11. const unsigned int ERROR_dont_notify                            = 0x0004;
  12.  
  13. //dunno
  14. const unsigned int ERROR_command_not_found                      = 0x0100;
  15. const unsigned int ERROR_unable_to_bind_network_port            = 0x0101;
  16. const unsigned int ERROR_no_network_port_available              = 0x0102;
  17.  
  18. //client
  19. const unsigned int ERROR_client_invalid_id                      = 0x0200;
  20. const unsigned int ERROR_client_nickname_inuse                  = 0x0201;
  21. const unsigned int ERROR_client_protocol_limit_reached          = 0x0203;
  22. const unsigned int ERROR_client_invalid_type                    = 0x0204;
  23. const unsigned int ERROR_client_already_subscribed              = 0x0205;
  24. const unsigned int ERROR_client_not_logged_in                   = 0x0206;
  25. const unsigned int ERROR_client_could_not_validate_identity     = 0x0207;
  26. const unsigned int ERROR_client_version_outdated                = 0x020a;
  27.  
  28. //channel
  29. const unsigned int ERROR_channel_invalid_id                     = 0x0300;
  30. const unsigned int ERROR_channel_protocol_limit_reached         = 0x0301;
  31. const unsigned int ERROR_channel_already_in                     = 0x0302;
  32. const unsigned int ERROR_channel_name_inuse                     = 0x0303;
  33. const unsigned int ERROR_channel_not_empty                      = 0x0304;
  34. const unsigned int ERROR_channel_can_not_delete_default         = 0x0305;
  35. const unsigned int ERROR_channel_default_require_permanent      = 0x0306;
  36. const unsigned int ERROR_channel_invalid_flags                  = 0x0307;
  37. const unsigned int ERROR_channel_parent_not_permanent           = 0x0308;
  38. const unsigned int ERROR_channel_maxclients_reached             = 0x0309;
  39. const unsigned int ERROR_channel_maxfamily_reached              = 0x030a;
  40. const unsigned int ERROR_channel_invalid_order                  = 0x030b;
  41. const unsigned int ERROR_channel_no_filetransfer_supported      = 0x030c;
  42. const unsigned int ERROR_channel_invalid_password               = 0x030d;
  43.  
  44. //server
  45. const unsigned int ERROR_server_invalid_id                      = 0x0400;
  46. const unsigned int ERROR_server_running                         = 0x0401;
  47. const unsigned int ERROR_server_is_shutting_down                = 0x0402;
  48. const unsigned int ERROR_server_maxclients_reached              = 0x0403;
  49. const unsigned int ERROR_server_invalid_password                = 0x0404;
  50. const unsigned int ERROR_server_is_virtual                      = 0x0407;
  51. const unsigned int ERROR_server_is_not_running                  = 0x0409;
  52. const unsigned int ERROR_server_is_booting                      = 0x040a;
  53. const unsigned int ERROR_server_status_invalid                  = 0x040b;
  54.  
  55. //parameter
  56. const unsigned int ERROR_parameter_quote                        = 0x0600;
  57. const unsigned int ERROR_parameter_invalid_count                = 0x0601;
  58. const unsigned int ERROR_parameter_invalid                      = 0x0602;
  59. const unsigned int ERROR_parameter_not_found                    = 0x0603;
  60. const unsigned int ERROR_parameter_convert                      = 0x0604;
  61. const unsigned int ERROR_parameter_invalid_size                 = 0x0605;
  62. const unsigned int ERROR_parameter_missing                      = 0x0606;
  63.  
  64. //unsorted, need further investigation
  65. const unsigned int ERROR_vs_critical                            = 0x0700;
  66. const unsigned int ERROR_connection_lost                        = 0x0701;
  67. const unsigned int ERROR_not_connected                          = 0x0702;
  68. const unsigned int ERROR_no_cached_connection_info              = 0x0703;
  69. const unsigned int ERROR_currently_not_possible                 = 0x0704;
  70. const unsigned int ERROR_failed_connection_initialisation       = 0x0705;
  71. const unsigned int ERROR_could_not_resolve_hostname             = 0x0706;
  72. const unsigned int ERROR_invalid_server_connection_handler_id   = 0x0707;
  73. const unsigned int ERROR_could_not_initialise_input_manager     = 0x0708;
  74. const unsigned int ERROR_clientlibrary_not_initialised          = 0x0709;
  75. const unsigned int ERROR_serverlibrary_not_initialised          = 0x070a;
  76. const unsigned int ERROR_whisper_too_many_targets               = 0x070b;
  77. const unsigned int ERROR_whisper_no_targets                     = 0x070c;
  78.  
  79. //sound
  80. const unsigned int ERROR_sound_preprocessor_disabled            = 0x0900;
  81. const unsigned int ERROR_sound_internal_preprocessor            = 0x0901;
  82. const unsigned int ERROR_sound_internal_encoder                 = 0x0902;
  83. const unsigned int ERROR_sound_internal_playback                = 0x0903;
  84. const unsigned int ERROR_sound_no_capture_device_available      = 0x0904;
  85. const unsigned int ERROR_sound_no_playback_device_available     = 0x0905;
  86. const unsigned int ERROR_sound_could_not_open_capture_device    = 0x0906;
  87. const unsigned int ERROR_sound_could_not_open_playback_device   = 0x0907;
  88. const unsigned int ERROR_sound_handler_has_device               = 0x0908;
  89. const unsigned int ERROR_sound_invalid_capture_device           = 0x0909;
  90. const unsigned int ERROR_sound_invalid_playback_device          = 0x090a;
  91. const unsigned int ERROR_sound_invalid_wave                     = 0x090b;
  92. const unsigned int ERROR_sound_unsupported_wave                 = 0x090c;
  93. const unsigned int ERROR_sound_open_wave                        = 0x090d;
  94. const unsigned int ERROR_sound_internal_capture                 = 0x090e;
  95. const unsigned int ERROR_sound_device_in_use                    = 0x090f;
  96. const unsigned int ERROR_sound_device_already_registerred       = 0x0910;
  97. const unsigned int ERROR_sound_unknown_device                   = 0x0911;
  98. const unsigned int ERROR_sound_unsupported_frequency            = 0x0912;
  99. const unsigned int ERROR_sound_invalid_channel_count            = 0x0913;
  100. const unsigned int ERROR_sound_read_wave                        = 0x0914;
  101. const unsigned int ERROR_sound_need_more_data                   = 0x0915; //for internal purposes only
  102. const unsigned int ERROR_sound_device_busy                      = 0x0916; //for internal purposes only
  103. const unsigned int ERROR_sound_no_data                          = 0x0917; //for internal purposes only
  104.  
  105. //accounting
  106. const unsigned int ERROR_accounting_virtualserver_limit_reached = 0x0b00;
  107. const unsigned int ERROR_accounting_slot_limit_reached          = 0x0b01;
  108. const unsigned int ERROR_accounting_license_file_not_found      = 0x0b02;
  109. const unsigned int ERROR_accounting_license_date_not_ok         = 0x0b03;
  110. const unsigned int ERROR_accounting_unable_to_connect_to_server = 0x0b04;
  111. const unsigned int ERROR_accounting_unknown_error               = 0x0b05;
  112. const unsigned int ERROR_accounting_server_error                = 0x0b06;
  113. const unsigned int ERROR_accounting_instance_limit_reached      = 0x0b07;
  114. const unsigned int ERROR_accounting_instance_check_error        = 0x0b08;
  115. const unsigned int ERROR_accounting_license_file_invalid        = 0x0b09;
  116. const unsigned int ERROR_accounting_running_elsewhere           = 0x0b0a;
  117. const unsigned int ERROR_accounting_instance_duplicated         = 0x0b0b;
  118. const unsigned int ERROR_accounting_already_started             = 0x0b0c;
  119. const unsigned int ERROR_accounting_not_started                 = 0x0b0d;
  120. const unsigned int ERROR_accounting_to_many_starts              = 0x0b0e;
  121.  
  122. #endif
  123.