Diffusion C API
6.1.5
|
Functions which are used for updating topics. More...
Functions | |
UPDATE_T * | update_create (const UPDATE_ACTION_T action, const UPDATE_TYPE_T type, const CONTENT_T *content) |
Create a new UPDATE_T structure for updating topic content. More... | |
void | update_free (UPDATE_T *update) |
Free all memory associated with an UPDATE_T. More... | |
BUF_T * | update_marshal (const UPDATE_T *update) |
Serialise an UPDATE_T to bytes for transmission to Diffusion. More... | |
char * | buf_read_update (const char *data, UPDATE_T **update) |
Read an UPDATE_T structure from a char array. More... | |
UPDATE_T * | update_unmarshal (const char *str) |
Deserialise bytes from Diffusion to an UPDATE_T structure. More... | |
UPDATE_T * | update_dup (const UPDATE_T *src) |
Create a deep copy of an UPDATE_T structure. More... | |
Functions which are used for updating topics.
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.
char* buf_read_update | ( | const char * | data, |
UPDATE_T ** | update | ||
) |
Read an UPDATE_T structure from a char array.
data | The char array containing the serialised UPDATE_T |
update | The location to store a newly allocated UPDATE_T |
UPDATE_T* update_create | ( | const UPDATE_ACTION_T | action, |
const UPDATE_TYPE_T | type, | ||
const CONTENT_T * | content | ||
) |
Create a new UPDATE_T structure for updating topic content.
action | The operation that will be performed on the target topic data (refresh, update, match). |
type | The type of update being performed (typically, Content change). |
content | The data to be sent to Diffusion. |
Create a deep copy of an UPDATE_T structure.
src | The UPDATE_T to copy. |
void update_free | ( | UPDATE_T * | update | ) |
Free all memory associated with an UPDATE_T.
update | The UPDATE_T to be freed. |
Serialise an UPDATE_T to bytes for transmission to Diffusion.
update | The UPDATE_T to be mashalled. |
UPDATE_T* update_unmarshal | ( | const char * | str | ) |
Deserialise bytes from Diffusion to an UPDATE_T structure.
str | The bytes to be unmarshalled. |