Top | ![]() |
![]() |
![]() |
![]() |
#define | ipatch_code_error() |
void | ipatch_init () |
void | ipatch_close () |
void | ipatch_set_application_name () |
GQuark | ipatch_error_quark () |
const char * | ipatch_gerror_message () |
void | ipatch_strconcat_num () |
void | ipatch_dump_object () |
void | ipatch_glist_unref_free () |
void
ipatch_init (void
);
Initialize libInstPatch library. Should be called before any other libInstPatch related functions.
void
ipatch_close (void
);
This should be called prior to application close.
Decrement the reference counter and if it reaches 0 performs cleanup of libInstPatch, such as deleting temporary files and internal caches. If the counter is still > 0, the function return without doing cleanup (the library is still owned).
Does nothing if the library is already deinitialized (or was not initialized).
Since: 1.1.0
void
ipatch_set_application_name (const char *name
);
Set the global application name string which is used as the software string written to patch files. This string should contain the name of the application, and its version, that is using libInstPatch. The libInstPatch version will also be output where appropriate, so the software string written to a SoundFont for example would look something like "swami 1.0 (libInstPatch 1.0)".
const char *
ipatch_gerror_message (GError *err
);
A utility function to check if a GError is set and return the
GError's message field if it is, or a string explaining that there
isn't any error info if err
is NULL
.
[skip]
void ipatch_strconcat_num (const char *src
,int num
,char *dest
,int size
);
Creates a string with a number appended to it but ensures that it is
of the specified size
(including NULL termination). Characters in the
middle of the string are removed and a ".." is inserted, if necessary.
[skip]
void ipatch_dump_object (GObject *object
,gboolean recursive
,FILE *file
);
Dumps object info to a file for debugging purposes.
[skip]
object |
Object to dump |
|
recursive |
Set to |
|
file |
File to dump to or |