goep_server.h (2a4ebdf641323ac894b53065579d4f4556bff551) goep_server.h (c8e39cad4d468e8f30f3c3da4792ac3effa0aa86)
1/*
2 * Copyright (C) 2022 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 130 unchanged lines hidden (view full) ---

139 * @param obex_version_number
140 * @param flags
141 * @param maximum_obex_packet_length
142 * @return status
143 */
144uint8_t goep_server_response_create_connect(uint16_t goep_cid, uint8_t obex_version_number, uint8_t flags, uint16_t maximum_obex_packet_length);
145
146/**
1/*
2 * Copyright (C) 2022 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 130 unchanged lines hidden (view full) ---

139 * @param obex_version_number
140 * @param flags
141 * @param maximum_obex_packet_length
142 * @return status
143 */
144uint8_t goep_server_response_create_connect(uint16_t goep_cid, uint8_t obex_version_number, uint8_t flags, uint16_t maximum_obex_packet_length);
145
146/**
147 * @brief Start General response with opcode
147 * @brief Start General response
148 * @note response code is set by goep_server_execute
148 * @param goep_cid
149 * @param opcode
150 * @return status
151 */
149 * @param goep_cid
150 * @param opcode
151 * @return status
152 */
152uint8_t goep_server_response_create_general(uint16_t goep_cid, uint8_t opcode);
153uint8_t goep_server_response_create_general(uint16_t goep_cid);
153
154/**
155 * @brief Get max size of body data that can be added to current response with goep_server_header_add_end_of_body
156 * @param goep_cid
157 * @param data
158 * @param length
159 * @return size in bytes or 0
160 */

--- 29 unchanged lines hidden (view full) ---

190 * @param goep_cid
191 * @param data
192 * @param length
193 * @return
194 */
195uint8_t goep_server_header_add_application_parameters(uint16_t goep_cid, const uint8_t * data, uint16_t length);
196
197/**
154
155/**
156 * @brief Get max size of body data that can be added to current response with goep_server_header_add_end_of_body
157 * @param goep_cid
158 * @param data
159 * @param length
160 * @return size in bytes or 0
161 */

--- 29 unchanged lines hidden (view full) ---

191 * @param goep_cid
192 * @param data
193 * @param length
194 * @return
195 */
196uint8_t goep_server_header_add_application_parameters(uint16_t goep_cid, const uint8_t * data, uint16_t length);
197
198/**
198 * @brief Execute prepared request
199 * @brief Send prepared response
199 * @param goep_cid
200 * @param goep_cid
201 * @param response_code
200 * @return status
201 */
202 * @return status
203 */
202uint8_t goep_server_execute(uint16_t goep_cid);
204uint8_t goep_server_execute(uint16_t goep_cid, uint8_t response_code);
203
204/**
205 * De-Init
206 */
207void geop_server_deinit(void);
208
209/* API_END */
210
211#if defined __cplusplus
212}
213#endif
214#endif
205
206/**
207 * De-Init
208 */
209void geop_server_deinit(void);
210
211/* API_END */
212
213#if defined __cplusplus
214}
215#endif
216#endif