* \return Previous tail pointer
*
*/
-inline unsigned char* fwp_msgb_put(struct fwp_msgb *msgb, unsigned int len)
+unsigned char* fwp_msgb_put(struct fwp_msgb *msgb, unsigned int len)
{
unsigned char *tmp= msgb->tail;
* \return Previous tail pointer on NULL in case of lack of space in the buffer.
*
*/
-inline unsigned char* fwp_msgb_pull(struct fwp_msgb *msgb, unsigned int len)
+unsigned char* fwp_msgb_pull(struct fwp_msgb *msgb, unsigned int len)
{
if (len > msgb->len)
return NULL;
* \return Current data pointer
*
*/
-inline unsigned char* fwp_msgb_push(struct fwp_msgb* msgb, unsigned int len)
+unsigned char* fwp_msgb_push(struct fwp_msgb* msgb, unsigned int len)
{
msgb->data-=len;
msgb->len+=len;
return msgb->data;
}
-inline unsigned char* fwp_msgb_shift(struct fwp_msgb *msgb, unsigned int len)
+unsigned char* fwp_msgb_shift(struct fwp_msgb *msgb, unsigned int len)
{
if (msgb->data + len > msgb->tail)
return NULL;
* \param msgb Pointer to msgb
*
*/
-inline void fwp_msgb_reset_data_pointer(struct fwp_msgb *msgb)
+void fwp_msgb_reset_data_pointer(struct fwp_msgb *msgb)
{
msgb->data = (unsigned char*) msgb + sizeof(struct fwp_msgb);
}
*
* \param msgb Pointer to msgb
*/
-inline void fwp_msgb_reset_data(struct fwp_msgb* msgb)
+void fwp_msgb_reset_data(struct fwp_msgb* msgb)
{
msgb->len = 0;
msgb->data = (unsigned char*) msgb + sizeof(struct fwp_msgb);
* \param msgb Pointer to msgb
* \param len The lenght data
*/
-inline void fwp_msgb_reserve(fwp_msgb_t *msgb, unsigned int len)
+void fwp_msgb_reserve(fwp_msgb_t *msgb, unsigned int len)
{
msgb->data+=len;
msgb->tail+=len;
struct fwp_msgb* fwp_msgb_alloc(size_t buf_size);
void fwp_msgb_free(struct fwp_msgb* msgb);
-inline unsigned char* fwp_msgb_put(struct fwp_msgb *msgb, unsigned int len);
-inline unsigned char* fwp_msgb_pull(struct fwp_msgb *msgb, unsigned int len);
-inline unsigned char* fwp_msgb_push(struct fwp_msgb* msgb, unsigned int len);
-inline void fwp_msgb_reset_data_pointer(struct fwp_msgb* msgb);
-inline void fwp_msgb_reset_data(struct fwp_msgb* msgb);
-inline unsigned char* fwp_msgb_shift(struct fwp_msgb* msgb, unsigned int len);
-inline void fwp_msgb_reserve(fwp_msgb_t *msgb, unsigned int len);
+unsigned char* fwp_msgb_put(struct fwp_msgb *msgb, unsigned int len);
+unsigned char* fwp_msgb_pull(struct fwp_msgb *msgb, unsigned int len);
+unsigned char* fwp_msgb_push(struct fwp_msgb* msgb, unsigned int len);
+void fwp_msgb_reset_data_pointer(struct fwp_msgb* msgb);
+void fwp_msgb_reset_data(struct fwp_msgb* msgb);
+unsigned char* fwp_msgb_shift(struct fwp_msgb* msgb, unsigned int len);
+void fwp_msgb_reserve(fwp_msgb_t *msgb, unsigned int len);
/*struct fwp_socketaddr* fwp_socket_create(struct sockaddr *_addr, socklen_t _addrlen);
inline void fwp_socket_set(struct fwp_socketaddr *fwpsock, struct sockaddr *_addr,
[AC_BE] = "AC_BE", [AC_BK] = "AC_BK", };
*/
-inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
+void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
const struct timespec *right)
{
sum->tv_sec = left->tv_sec + right->tv_sec;
}
}
-inline void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
+void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
const struct timespec *right)
{
diff->tv_sec = left->tv_sec - right->tv_sec;
return ret;
}
-inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
+void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
const struct timespec *right);
-inline void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
+void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
const struct timespec *right);
void fwp_timespec_modulo(struct timespec *dividend, struct timespec *dividor,
struct timespec *remainder);