The source code in C looks like:
typedef wchar_t char_t;
typedef const char_t* const_string_t;
static const_string_t g_symbols[] = { {L"IBM"}, {L"MSFT"}, {L"YHOO"}, {L"C"} };
...
some_c_func(g_symbols)
...
some_c_func is declared somewhere earlier with something like:
int some_c_func(const_string_t* symbols)
It is important that g_symbols is passed to some_c_func function, so I have to write wrapper over it, that should look somehow like:
ctypedef wchar_t char_t
ctypedef const char_t* const_string_t
def some_py_func(py_list=['a', 'b', 'c']):
g_symbols = ... # some transformation from py_list to g_symbols
some_c_func(g_symbols)
print('Done!')
I will appreciate any help