3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * @brief This file is the header file of interface and defined structure for San Parser
24 #ifndef PM_SANPARSER_H_
25 #define PM_SANPARSER_H_
28 SAN_UIMODE_UNSPECIFIED = 0,
29 SAN_UIMODE_BACKGROUND = 1,
30 SAN_UIMODE_INFORMATIVE = 2,
35 SAN_INITIATOR_USER = 0,
36 SAN_INITIATOR_SERVER = 1
39 typedef struct SanCred SanCred;
46 typedef struct SanPackage SanPackage;
48 char *msgBodyWithoutDigest;
49 unsigned int msgBodyWithoutDigestLength;
53 SanInitiator initiator;
54 unsigned char *sessionID;
60 * @par Description: API to sanpackage_noti_parser
64 * @par Typical use case:
65 * @par Method of function operation:
66 * @par Important notes:
67 * @param[in] msgBody msgBody
68 * @param[in] msgSize msgSize
70 * @return SanPackage structure
84 SanPackage *sanpackage_noti_parser(const char *msgBody, unsigned int msgSize);
87 * @par Description: API to sanpackage_xml_parser
91 * @par Typical use case:
92 * @par Method of function operation:
93 * @par Important notes:
94 * @param[in] msgBody msgBody
95 * @param[in] msgSize msgSize
97 * @return SanPackage structure
111 SanPackage *sanpackage_xml_parser(const char *msgBody, unsigned int msgSize);
114 * @par Description: API to free_sanpackageparser
118 * @par Typical use case:
119 * @par Method of function operation:
120 * @par Important notes:
121 * @param[in] SanPackage
137 void free_sanpackageparser(SanPackage * san);
140 * @par Description: API to san_printmsg
144 * @par Typical use case:
145 * @par Method of function operation:
146 * @par Important notes:
147 * @param[in] SanPackage
163 void san_printmsg(SanPackage * san);
165 #endif /* PM_SANPARSER_H_ */