_GaimStringref Struct Reference

The internal representation of a stringref. More...

#include <stringref.h>


Data Fields

guint32 ref
 The reference count of this string.
char value [1]
 The string contained in this ref.


Detailed Description

The internal representation of a stringref.

Note:
For this structure to be useful, the string contained within it must be immutable -- for this reason, do _not_ access it directly!


Field Documentation

guint32 _GaimStringref::ref

The reference count of this string.

Note that reference counts are only 31 bits, and the high-order bit indicates whether this string is up for GC at the next idle handler... But you aren't going to touch this anyway, right?

char _GaimStringref::value[1]

The string contained in this ref.

Notice that it is simply "hanging off the end" of the ref ... this is to save an allocation.


The documentation for this struct was generated from the following file:
Generated on Wed Aug 9 23:40:58 2006 for gaim by  doxygen 1.4.7