SMFS will return 0 in case of successfull registration or error code otherwise.
+\layout Subsubsection*
+
+Plugin deregistration
+\layout Standard
+
+SMFS provide following method for deregistration:
+\layout LyX-Code
+
+void * smfs_deregister_plugin (int type);
+\layout Standard
+
+SMFS will return private plugin data from struct smfs_plugin in case of
+ successfull registration or NULL pointer otherwise.
+
\layout Paragraph*
Plugins operation
Plugin's hook function must have the same type:
\layout LyX-Code
-typedef int smfs_hook_func (int opcode, void * parameter);
+typedef int (*smfs_plg_hook) (int opcode, void * parameter, void * plg_private);
\layout Standard
Parameter can contains:
handle - fsfilt transaction if exists
\layout Standard
+
+\emph on
+Plg_private
+\emph default
+is private plugin data.
+\layout Standard
+
There are opcodes for now:
\layout LyX-Code
etc.
\layout LyX-Code
-smfs_helper(int code, void * parameter);
+smfs_helper(int code, void * parameter, void * plg_private);
\layout Standard
Where