search for: addlibraryfunct

Displaying 1 result from an estimated 1 matches for "addlibraryfunct".

2007 Mar 07
4
Plugin Library Interface
...ow want to explain here how it works in general. Core does save the shared library functions in a CompLibraryFunction struct: struct _CompLibraryFunction { CompLibraryFunction *prev; CompLibraryFunction *next; char *name; void *function; }; Core also gets a number of utility functions: void addLibraryFunction (CompDisplay *d, char *name, void *function); void removeLibraryFunction (CompDisplay *d, char *name); void* getLibraryFunction (CompDisplay *d, char* name); void updateLibraryFunction(CompDisplay *d, CompLibraryFunction *func); You can register a function through addLibraryFunction and remove...