Xact_Register_Console_Function_W_Arrayed_Args; Xact_Unregister_Console_Function; Xact_Executecommandstr - Intel IXP2400 User Manual

Network processors
Table of Contents

Advertisement

number of (char *) args is <= 3
number of (int) args is <= 5SynopsisXACTAPI
Returns
9.5.6

XACT_register_console_function_w_arrayed_args

This function registers a foreign function with the transactor's C interpreter.The argument list of the
specified function is assumed to have the following characteristics:
only (char *) and (unsigned int) args are allowed
all (char *) args precede all (unsigned int) args.
The imported function is referenced in the console as:int function_name( specified number of
char * args, specified number of unsigned int args )
The imported function_ptr is actually called as: int (*function_ptr)( char
**char_array, unsigned int *int_array ) where the char arguments are
placed in the char_array from left to right starting at index 0 and the int arguments are
placed in the int_array from left to right starting at index 0.
Synopsis
Returns
While the function_ptr is passed in as a void *, it will be called by the simulator as int
(*function_ptr)( specified number of char * args, specified number of unsigned int args )
9.5.7

XACT_unregister_console_function

This function unregisters a routine that has been previously registered via
XACT_register_console_function().
Synopsis
Returns
9.5.8

XACT_ExecuteCommandStr

Executes the str as a console command
Synopsis
Development Tools User's Guide
®
Intel
XACT_register_console_function_w_arrayed_args(
char *function_name,int (*function_ptr)( char
**, unsigned int * ),int num_char_ptr_args,int
num_uint_args )
1 if function is successful, 0 otherwise.
XACTAPI XACT_register_console_function( char
*function_name,void *function_ptr,int
num_char_ptr_args,int num_uint_args )
1 if function is successful, 0 otherwise.
XACTAPI XACT_unregister_console_function( char
*function_name )
1 if function is successful, 0 otherwise.
XACTAPI XACT_ExecuteCommandStr( char *cmd_str )
IXP2400/IXP2800 Network Processors
Simulator APIs
269

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ixp2800

Table of Contents