ua_statuscode_msg.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2016 the contributors as stated in the AUTHORS file
  3. *
  4. * This file is part of open62541. open62541 is free software: you can
  5. * redistribute it and/or modify it under the terms of the GNU Lesser General
  6. * Public License, version 3 (as published by the Free Software Foundation) with
  7. * a static linking exception as stated in the LICENSE file provided with
  8. * open62541.
  9. *
  10. * open62541 is distributed in the hope that it will be useful, but WITHOUT ANY
  11. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  13. * details.
  14. */
  15. #ifndef UA_STATUSCODE_MSG_H_
  16. #define UA_STATUSCODE_MSG_H_
  17. #include "ua_types.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. struct UA_StatusCode_msg_info {
  22. UA_StatusCode value; /* The numeric value from UA_StatusCode */
  23. const char* name; /* The equivalent symbolic value */
  24. const char* msg; /* Short message about this value */
  25. };
  26. extern const struct UA_StatusCode_msg_info UA_StatusCode_msg_table[];
  27. extern const unsigned int UA_StatusCode_msg_table_size;
  28. UA_EXPORT const char * UA_StatusCode_msg(UA_StatusCode code);
  29. UA_EXPORT const char * UA_StatusCode_name(UA_StatusCode code);
  30. UA_StatusCode UA_EXPORT UA_StatusCode_from_name(const char* name);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif /* UA_STATUSCODE_MSG_H_ */