slang-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] How to add a struct type from C?


Hi,
I would like to have this structure:

typedef struct {
    int type;
    int param;
    long lparam;
    char *str;
} ParmData_Type;

to become available in interpreter, to be able to do:

variable stru = @ParamData_Type;

I've searched the Slirp manual and I've found something that should work,
however it has basically no effect:

slirp_map_struct("ParmData_Type*");

-- 
Sebastian Gniazdowski

[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]