litestomp
Data Structures | Macros | Typedefs | Functions
stomp_ex_properties.h File Reference
#include <apr-1/apr_hash.h>
#include <apr-1/apr_time.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include "stomp_status.h"

Go to the source code of this file.

Data Structures

struct  stomp_exchange_properties_t_
 

Macros

#define STOMP_CREATION_TIME   "creation"
 

Typedefs

typedef apr_hash_t stomp_hash_t
 
typedef struct stomp_exchange_properties_t_ stomp_exchange_properties_t
 

Functions

void stomp_exchange_add (stomp_exchange_properties_t *properties, const char *name, const char *value)
 
const char * stomp_exchange_get (stomp_exchange_properties_t *properties, const char *name)
 
void stomp_exchange_clear (stomp_exchange_properties_t *properties)
 
stomp_status_code_t stomp_exchange_util_ctime (stomp_exchange_properties_t *properties, stomp_status_t *stat)
 

Macro Definition Documentation

#define STOMP_CREATION_TIME   "creation"
Examples:
messenger/server.c.

Typedef Documentation

This type holds application properties set at the exchange level (in other words, it sets properties that get appended as STOMP headers in the transaction). The exchange properties are durable throughout the message exchange lifetime, therefore they should be cleared if undesired for some particular transaction.

typedef apr_hash_t stomp_hash_t

Function Documentation

void stomp_exchange_add ( stomp_exchange_properties_t properties,
const char *  name,
const char *  value 
)

Adds a property to the exchange

Parameters
propertiesthe properties data structure to be added
namethe name of the property
valuethe value of the property

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.

void stomp_exchange_clear ( stomp_exchange_properties_t properties)

Clears the exchange properties

Parameters
propertiesthe properties data structure to be read
const char* stomp_exchange_get ( stomp_exchange_properties_t properties,
const char *  name 
)

Gets a property from the exchange

Parameters
propertiesthe properties data structure to be read
namethe name of the property
Returns
value the value of the property
stomp_status_code_t stomp_exchange_util_ctime ( stomp_exchange_properties_t properties,
stomp_status_t stat 
)

Appends the creation time to the exchange properties. It will be added in the transaction as "creation"

Parameters
propertiesthe properties data structure to be read