Next: , Up: Generalities


5.1 Data Types used by the library

libassuan uses a context approach to keep state. The following data type is used all over the place:

— Data type: assuan_context_t

The assuan_context_t type is a pointer to an object maintained internally by the library. Certain Assuan functions allocate such a context and return it to the caller using this data type. Other functions take this data type to access the state created by these functions.

For compatibility with older versions of libassuan a data type for error return values exists:

— Data type: assuan_error_t

This has originally been an enum but applications should either view it as an int or if possible use the gpg_error_t data type as defined by the libgpg-error package.