Eliminate unneeded non-public APIs from generated vxmicro.h

There is no longer a reason to expose information about the
internels of the microkernel's event subsystem to application
files.

Note: The one sample project that tests event processing now
explicitly declares any non-public event APIs in requires.

Change-Id: I4c3f85a7b0bc485713c21424a923102b4f400ced
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-05-14 10:34:49 -04:00 committed by Anas Nashif
parent d3126ff88b
commit ed29b076ea
2 changed files with 4 additions and 10 deletions

View File

@ -69,6 +69,8 @@ static int handlerRetVal = 0;
extern void testFiberInit(void);
extern struct nano_sem fiberSem; /* semaphore that allows test control the fiber */
extern const int _k_num_events; /* non-public microkernel global variable */
/*******************************************************************************
*
* isr_event_signal_handler - ISR handler to signal an event

View File

@ -1195,15 +1195,8 @@ def generate_vxmicro_h_header():
do_not_edit_warning + \
vxmicro_h_header_include_guard_str + \
"#include <microkernel.h>\n" + \
"#include <microkernel_objects.h>\n"
def generate_vxmicro_h_misc():
global vxmicro_h_data
vxmicro_h_data += "\n" + \
"extern const int _k_num_events;\n" + \
"extern struct evstr _k_event_list[];\n\n"
"#include <microkernel_objects.h>\n" + \
"\n"
def generate_vxmicro_h_obj_ids():
@ -1246,7 +1239,6 @@ def vxmicro_h_generate():
""" Generate vxmicro.h file """
generate_vxmicro_h_header()
generate_vxmicro_h_misc()
generate_vxmicro_h_obj_ids()
generate_vxmicro_h_task_entry_points()
generate_vxmicro_h_footer()