ajcall.c


Function ajCallTableNew

Create new function hash table

Synopsis

Prototype
AjPTable ajCallTableNew (
      void
);

TypeNameRead/WriteDescription
AjPTable RETURNHash table with string keys

Returns
AjPTable:Hash table with string keys

Description

Create new function hash table

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCallTableRegister

Create hash value pair using the name and function.

Synopsis

Prototype
void ajCallTableRegister (
      AjPTable table,
      const char* name,
      void* func
);

TypeNameRead/WriteDescription
AjPTabletableOutputname which is used later.
const char*nameInputname which is used later.
void*funcFunctionfunction to be called on name being called.
void RETURN

Input
name:(Input)name which is used later.
func:(Function)function to be called on name being called.
Output
table:(Output)name which is used later.
Returns
void:No return value

Description

Create hash value pair using the name and function.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCallRegister

Create hash value pair using the name and function.

Synopsis

Prototype
void ajCallRegister (
      const char* name,
      CallFunc func
);

TypeNameRead/WriteDescription
const char*nameInputname which is used later..
CallFuncfuncFunctionfunction to be called on name being called.
void RETURN

Input
name:(Input)name which is used later..
func:(Function)function to be called on name being called.
Returns
void:No return value

Description

Create hash value pair using the name and function.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCallRegisterOld

Create hash value pair using an obsolete name and function.

Synopsis

Prototype
void ajCallRegisterOld (
      const char* name,
      CallFunc func
);

TypeNameRead/WriteDescription
const char*nameInputname which is used later.
CallFuncfuncFunctionfunction to be called on name being called.
void RETURN

Input
name:(Input)name which is used later.
func:(Function)function to be called on name being called.
Returns
void:No return value

Description

Create hash value pair using an obsolete name and function.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCall

Call a function by its name. If it does not exist then give an error message saying so.

Synopsis

Prototype
void* ajCall (
      const char* name,
      ...
);

TypeNameRead/WriteDescription
const char*nameInputname of the function to call.
...varargVarargOptional arguments
void* RETURNNULL if function call not found.

Input
name:(Input)name of the function to call.
:(Vararg)Optional arguments
Returns
void*:NULL if function call not found.

Description

Call a function by its name. If it does not exist then give an error message saying so.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCallTableGetC

Returns a named function by its name. If it does not exist then give an error message saying so.

Synopsis

Prototype
void* ajCallTableGetC (
      const AjPTable table,
      const char* name
);

TypeNameRead/WriteDescription
const AjPTabletableInputFunction hash table
const char*nameInputname of the function
void* RETURNNULL if function call not found.

Input
table:(Input)Function hash table
name:(Input)name of the function
Returns
void*:NULL if function call not found.

Description

Returns a named function by its name. If it does not exist then give an error message saying so.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCallTableGetS

Returns a named function by its name. If it does not exist then give an error message saying so.

Synopsis

Prototype
void* ajCallTableGetS (
      const AjPTable table,
      const AjPStr namestr
);

TypeNameRead/WriteDescription
const AjPTabletableInputFunction hash table
const AjPStrnamestrInputname of the function
void* RETURNNULL if function call not found.

Input
table:(Input)Function hash table
namestr:(Input)name of the function
Returns
void*:NULL if function call not found.

Description

Returns a named function by its name. If it does not exist then give an error message saying so.

See Also

See other functions in this section

Availability

In release 6.4.0

Function ajCallExit

Cleans up calls register internal memory

Synopsis

Prototype
void ajCallExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

Returns
void:No return value

Description

Cleans up calls register internal memory

See Also

See other functions in this section

Availability

In release 6.4.0