python/py_srvsvc_conv.c

説明を見る。
00001 /* 
00002    Python wrappers for DCERPC/SMB client routines.
00003 
00004    Copyright (C) Tim Potter, 2003
00005    
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015    
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 }

Sambaに対してSat Aug 29 21:23:14 2009に生成されました。  doxygen 1.4.7