seAddLibTable
syntax: |
sebool seAddLibTable(secontext se, struct seLibraryTableEntry *table, void *data); |
where: |
se the context to add the functions to
table the table of functions to add
data user data for the library
|
return: |
A boolean indicating success. Failure can happen on an illegal table or if memory becomes exhausted.
|
description: |
This routine parses a library table and adds the variables, functions, and classes defined in it to your context. You need to add the tables to your context only once, right after you create it. From then on, all scripts run in the context will have access to the things you've defined in it. You do need to add the table to each context. You should consider consolidating all of your seAddLibTable calls into an sePrepareContextFunc callback (see Initialization and Contexts) so all contexts created in your application have access to the functions.
|
see: |
None
|