swu_string_t

Reference-counted string stored in library

Synopsis:

#include <swu/Common.h>

typedef char* swu_string_t;

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

The swu_string_t data type represents a referenced-counted string stored in the library. When working with an swu_string_t returned by an API call, you must call swu_object_retain() (unless otherwise noted) to increase the reference count and maintain access to the string variable. Any string that has its reference count increased this way must be released later with swu_object_release() when no longer needed.