litestomp
Data Structures | Typedefs | Functions
stomp_message.h File Reference
#include "stomp_status.h"
#include <string.h>

Go to the source code of this file.

Data Structures

struct  stomp_message_t_
 

Typedefs

typedef struct stomp_message_t_ stomp_message_t
 

Functions

stomp_message_tstomp_message_create (stomp_status_t *status)
 
void stomp_message_destroy (stomp_message_t **message)
 
void stomp_message_format (stomp_message_t *message, const char *data, size_t len)
 

Typedef Documentation

Copyright 2016 Otavio Rodolfo Piske

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. STOMP message

Function Documentation

stomp_message_t* stomp_message_create ( stomp_status_t status)

Creates a new STOMP message object

Parameters
statusA pointer to a status structure that will contain error details in case the message creation fails
Returns
a new STOMP message object
void stomp_message_destroy ( stomp_message_t **  message)

Destroy a STOMP message object. The object will be unusable after destruction

Parameters
messageA pointer to a pointer of a message object
void stomp_message_format ( stomp_message_t message,
const char *  data,
size_t  len 
)

Writes data to the message object

Parameters
messagethe message object instance to write to
datathe data to write
lenthe lenght of the data