equal
deleted
inserted
replaced
101 |
101 |
102 /*****************************************************************************/ |
102 /*****************************************************************************/ |
103 |
103 |
104 /** Pre-allocates the data memory. |
104 /** Pre-allocates the data memory. |
105 * |
105 * |
106 * If the \a buffer_size is already bigger than \a size, nothing is done. |
106 * If the internal \a buffer_size is already bigger than \a size, nothing is |
|
107 * done. |
|
108 * |
|
109 * \return Zero on success, otherwise a negative error code. |
107 */ |
110 */ |
108 int ec_foe_request_alloc( |
111 int ec_foe_request_alloc( |
109 ec_foe_request_t *req, /**< FoE request. */ |
112 ec_foe_request_t *req, /**< FoE request. */ |
110 size_t size /**< Data size to allocate. */ |
113 size_t size /**< Data size to allocate. */ |
111 ) |
114 ) |
129 /*****************************************************************************/ |
132 /*****************************************************************************/ |
130 |
133 |
131 /** Copies FoE data from an external source. |
134 /** Copies FoE data from an external source. |
132 * |
135 * |
133 * If the \a buffer_size is to small, new memory is allocated. |
136 * If the \a buffer_size is to small, new memory is allocated. |
|
137 * |
|
138 * \return Zero on success, otherwise a negative error code. |
134 */ |
139 */ |
135 int ec_foe_request_copy_data( |
140 int ec_foe_request_copy_data( |
136 ec_foe_request_t *req, /**< FoE request. */ |
141 ec_foe_request_t *req, /**< FoE request. */ |
137 const uint8_t *source, /**< Source data. */ |
142 const uint8_t *source, /**< Source data. */ |
138 size_t size /**< Number of bytes in \a source. */ |
143 size_t size /**< Number of bytes in \a source. */ |