contents   index   previous   next



seAddLibTable

 

syntax:

   boolean

SEContext.seAddLibTable(

              SELibraryTableEntry[] table,

              SELibrary libdata);

where:

table the table of functions to add

 

libdata the SELibrary object which implements your wrapper functions

 

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 Chapter IV) so all contexts created in your application have access to the functions.

 

see:

None

 


seGarbageCollect