00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "python/py_srvsvc.h"
00022 #include "python/py_conv.h"
00023
00024 static struct pyconv py_SRV_INFO_101[] = {
00025 { "platform_id", PY_UINT32, offsetof(SRV_INFO_101, platform_id) },
00026 { "major_version", PY_UINT32, offsetof(SRV_INFO_101, ver_major) },
00027 { "minor_version", PY_UINT32, offsetof(SRV_INFO_101, ver_minor) },
00028 { "server_type", PY_UINT32, offsetof(SRV_INFO_101, srv_type) },
00029 { "name", PY_UNISTR2, offsetof(SRV_INFO_101, uni_name) },
00030 { "comment", PY_UNISTR2, offsetof(SRV_INFO_101, uni_comment) },
00031 { NULL }
00032 };
00033
00034 BOOL py_from_SRV_INFO_101(PyObject **dict, SRV_INFO_101 *info)
00035 {
00036 *dict = from_struct(info, py_SRV_INFO_101);
00037
00038 PyDict_SetItemString(*dict, "level", PyInt_FromLong(101));
00039
00040 return True;
00041 }