QNames.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (C) 2007-2012 Siemens AG
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published
  6. * by the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. * GNU Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /*******************************************************************
  19. *
  20. * @author Daniel.Peintner.EXT@siemens.com
  21. * @version 0.7
  22. * @contact Joerg.Heuer@siemens.com
  23. *
  24. * <p>Code generated by EXIdizer.com</p>
  25. ********************************************************************/
  26. #ifndef EXI__QNAMES_H
  27. #define EXI__QNAMES_H
  28. #include "EXITypes.h"
  29. /**
  30. * \brief Returns efficient qname (namespaceURI & localName) IDs for qnameID
  31. *
  32. * \param state Codec state
  33. * \param qnameID Qualified name ID
  34. * \param namespaceURI QName namespace URI ID
  35. * \param localPart QName local name ID
  36. * \return Error-Code <> 0
  37. *
  38. */
  39. int exiGetEQName(exi_state_t* state, uint16_t qnameID, uint16_t* namespaceURI, uint16_t* localPart);
  40. /**
  41. * \brief Returns qnameID for qname namespaceURI & localName
  42. *
  43. * \param state Codec state
  44. * \param namespaceURI QName namespace URI ID
  45. * \param localPart QName local name ID
  46. * \param qnameID QName ID (out)
  47. * \return Error-Code <> 0
  48. *
  49. */
  50. int exiGetQNameID(exi_state_t* state, uint16_t namespaceURI, uint16_t localPart, uint16_t* qnameID);
  51. /**
  52. * \brief Add efficient qname (namespaceURI & localName) IDs for qnameID
  53. *
  54. * \param state Codec state
  55. * \param qnameID Qualified name ID
  56. * \param namespaceURI QName namespace URI ID
  57. * \param localPart QName local name ID
  58. * \return Error-Code <> 0
  59. *
  60. */
  61. int exiAddEQName(exi_state_t* state, uint16_t* qnameID, uint16_t namespaceURI, uint16_t localPart);
  62. #endif