Hi all,
I have the static variable g_listItem which is the header of the link list.
I have created the generic API which will be used by other module and every time this API(add_info_node()) is invoked I want to want the node to this single link list which I declare globally when the process is started.
So basisly in add_info_node() function will be used g_listItem which is global variable to add the new item(node) to the list. Ideally I don't want to use global variable(g_listIem) in this API9add_info_node()). Is there any way to get around for not using the global variable in this API(API9add_info_node()).

pass the headers in the functions and return updated ones.