Diffusion C API  6.1.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
topic-details.h File Reference

Functions used for working with topic details (TOPIC_DETAILS_T). More...

Functions

 DEPRECATED (TOPIC_DETAILS_T *create_topic_details_json(void))
 
 DEPRECATED (TOPIC_DETAILS_T *create_topic_details_single_value(const M_DATA_TYPE_T type))
 
 DEPRECATED (TOPIC_DETAILS_T *create_topic_details_slave(char *master_topic))
 
 DEPRECATED (BUF_T *topic_details_schema_build(const TOPIC_DETAILS_T *details))
 
 DEPRECATED (BUF_T *topic_details_marshal(TOPIC_DETAILS_T *details))
 
 DEPRECATED (TOPIC_DETAILS_T *topic_details_dup(const TOPIC_DETAILS_T *src))
 
 DEPRECATED (void topic_details_free(TOPIC_DETAILS_T *details))
 
 DEPRECATED (char *set_empty_field_value(const TOPIC_DETAILS_T *details, const char *value))
 Set the empty field value (record topic data only). More...
 
 DEPRECATED (char *get_empty_field_value(const TOPIC_DETAILS_T *details))
 Get the current empty field value (record topic data only). More...
 
 DEPRECATED (void topic_id_details_free(TOPIC_ID_DETAILS_T *val))
 
 DEPRECATED (char *buf_read_topic_details(const char *data, TOPIC_DETAILS_T *details))
 

Detailed Description

Functions used for working with topic details (TOPIC_DETAILS_T).

Topic details describe the structure of a topic.

If you intend to create many topics which have the same type of topic details, e.g. single value string topics, then it is recommended that you only create a single instance of topic details to describe them. This will allow the server to cache the details, significantly improving performance and reducing memory load.

Copyright © 2014, 2015 Push Technology Ltd., All Rights Reserved.

Use is subject to license terms.

NOTICE: All information contained herein is, and remains the property of Push Technology. The intellectual and technical concepts contained herein are proprietary to Push Technology and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law.

Function Documentation

DEPRECATED ( TOPIC_DETAILS_T create_topic_details_nonevoid)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Create a TOPIC_DETAILS_T which describes a topic with no topic details.

Deprecated:
This function is deprecated from version 5.9 onwards, and may be removed.

Create a TOPIC_DETAILS_T which describes a stateless topic, ie one that delegates its content to a publisher or control client.

Deprecated:
This function is deprecated from version 6.0 onwards, and may be removed.
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Create a TOPIC_DETAILS_T which for a topic with records and fields. The schema describing the structure of these records and fields must be provided separately.

Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Create a TOPIC_DETAILS_T which describes a topic containing binary data.

Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Crate a TOPIC_DETAILS_T which describes a topic containing JSON data.

DEPRECATED ( TOPIC_DETAILS_T create_topic_details_single_valueconst M_DATA_TYPE_T type)
Deprecated:
This function is deprecated from version 5.9 onwards, and may be removed.

Create a TOPIC_DETAILS_T which describes a topic with a simple value.

DEPRECATED ( TOPIC_DETAILS_T create_topic_details_slavechar *master_topic)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Create a TOPIC_DETAILS_T for a slave topic.

Parameters
master_topicThe full path of the topic to which the slave topic shall be an alias.
DEPRECATED ( BUF_T topic_details_schema_buildconst TOPIC_DETAILS_T *details)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Creates an XML document that represents the topic details that has been passed as an argument. The XML is serialised to a BUF_T for transmission to Diffusion when creating new topics.

DEPRECATED ( BUF_T topic_details_marshalTOPIC_DETAILS_T *details)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Take existing topic details (with an associated schema) and serialise into a form suitable for transmitting over the wire to Diffusion.

DEPRECATED ( TOPIC_DETAILS_T topic_details_dupconst TOPIC_DETAILS_T *src)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Create a duplicate (copy) of an existing TOPIC_DETAILS_T.

DEPRECATED ( void   topic_details_freeTOPIC_DETAILS_T *details)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Free memory associated with a TOPIC_DETAILS_T.

DEPRECATED ( char *  set_empty_field_valueconst TOPIC_DETAILS_T *details, const char *value)

Set the empty field value (record topic data only).

Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

For a client to differentiate between unchanged fields and empty fields in delta messages, it's necessary to use a special value to represent an empty field.

Parameters
detailsTopic details for which to set the value.
valueNew value for empty fields, or NULL to reset to the default (an empty string).
Returns
The previous value.
DEPRECATED ( char *  get_empty_field_valueconst TOPIC_DETAILS_T *details)

Get the current empty field value (record topic data only).

Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

This returns the value used to distinguish between a field which is unchanged from one which is merely empty. A value of NULL indicates that this value has never been set, and is treated internally as an empty string.

Parameters
detailsRecord topic details.
Returns
The value used to represent empty fields, or NULL.
DEPRECATED ( void   topic_id_details_freeTOPIC_ID_DETAILS_T *val)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Internal

DEPRECATED ( char *  buf_read_topic_detailsconst char *data, TOPIC_DETAILS_T *details)
Deprecated:
This function is deprecated from version 6.1 onwards, and may be removed.

Internal Read topic details into a structure.