• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(2437)  |  Call(0)  |  Derive(1919)  |  Import(518)
Structure base class

src/p/y/py_examples-HEAD/opencv/CVtypes.py   py_examples(Download)
# --- Importe ----------------------------------------------------------------
 
import ctypes, os
from ctypes import Structure, Union, POINTER, SetPointerType, CFUNCTYPE, cdll, byref
from ctypes import c_char_p, c_double, c_float, c_byte, c_ubyte, c_int, c_void_p, c_ulong
from ctypes import c_uint32, c_short, c_char, c_longlong
 
class _Structure(Structure):
    def __repr__(self):
        '''Print the fields'''
        res = []
        for field in self._fields_:
            res.append('%s=%s' % (field[0], repr(getattr(self, field[0]))))
        return self.__class__.__name__ + '(' + ','.join(res) + ')'
class CvMat(Structure):
    _fields_ = [("type", c_int),
                ("step", c_int),
                ("refcount", c_void_p),
                ("data", c_void_p),
                ("rows", c_int),
                ("cols", c_int)]
class CvMatNDdim(Structure):
    _fields_ = [("size", c_int),
                ("step", c_int)]
class CvMatND(Structure):
    _fields_ = [("type", c_int),
                ("dims", c_int),
                ("refcount", c_void_p),
                ("data", CvMatNDdata),
                ("dim", CvMatNDdim*CV_MAX_DIM)]
 
# IPL image header
class IplImage(Structure):
class CvAttrList(Structure):
    _fields_ = [("attr", c_void_p),
                ("next", c_void_p)]
 
# Memory storage
_lpCvMemStorage = POINTER("CvMemStorage")
class CvMemStorage(Structure):
class CvMemStoragePos(Structure):
    _fields_ = []
 
# Sequence
class CvSeq(Structure):
    _fields_ = [("flags", c_int),
                ("header_size", c_int),
class CvSeqBlock(Structure):
    _fields_ = []
 
class CvSeqWriter(Structure):
    _fields_ = []
 
class CvSeqReader(Structure):
    _fields_ = []
 
# File storage
class CvFileStorage(Structure):
class CvSparseMat(Structure):
    _fields_ = []
 
class CvContourScanner(Structure):
    _fields_ = []
 
class CvHistogram(Structure):
    _fields_ = [('type', c_int),
                ('bins', c_void_p)]
 
class CvString(Structure):
    _fields_ = []
 
class CvSlice(Structure):
class CvSET(Structure):
    _fields_ = []
 
class CvGraph(Structure):
    _fields_ = []
 
class CvGraphEdge(Structure):
    _fields_ = []
 
class CvGraphScanner(Structure):
    _fields_ = []
 
class CvFileNode(Structure):
class CvStringHashNode(Structure):
    _fields_ = []
 
class CvTypeInfo(Structure):
    _fields_ = []
 
class CvContourTree(Structure):
class CvSubdiv2DPoint(Structure):
    _fields_ = []
 
class CvSubdiv2DPointLocation(Structure):
    _fields_ = []
 
class CvKalman(Structure):
    _fields_ = []
 
class CvConDensation(Structure):
    _fields_ = []
 
class CvHaarClassifierCascade(Structure):
class CvPOSITObject(Structure):
    _fields_ = []
 
class CvMatr32f(Structure):
    _fields_ = []
 
class CvVect32f(Structure):
    _fields_ = []
 
class CvCapture(Structure):
    _fields_ = []
 
class CvVideoWriter(Structure):
class CvSetElem(Structure):
    _fields_ = []
 
class CvGraphVtx(Structure):
    _fields_ = []
 
class CvTreeNodeIterator(Structure):
    _fields_ = []
 
class CvFont(Structure):
    _fields_ = []
 
class CvLineIterator(Structure):
class CvModuleInfo(Structure):
    _fields_ = []
 
class IplConvKernel(Structure):
    _fields_ = []
 
class CvConnectedComp(_Structure):
    _fields_ = [('area', c_double),
                ('value', CvScalar),
                ('rect', CvRect),
                ('contour', POINTER(CvSeq))]
 
class CvMOMENTS(Structure):
class CvHuMoments(Structure):
    _fields_ = []
 
class CvChain(Structure):
    _fields_ = []
 
class CvChainPtReader(Structure):
    _fields_ = []
 
class CvContour(Structure):
    _fields_ = []
 
class CvCmpFunc(Structure):
class CvDistanceFunction(Structure):
    _fields_ = []
 
class CvSubdiv2D(Structure):
    _fields_ = []
 
class CvSubdiv2DEdge(Structure):

src/c/o/cogen-0.2.1/cogen/core/proactors/ctypes_iocp_impl/api_wrappers.py   cogen(Download)
from ctypes import WINFUNCTYPE, GetLastError, \
            windll, pythonapi, cast, WinError, create_string_buffer, \
            c_ushort, c_ubyte, c_char, WINFUNCTYPE, c_short, c_ubyte, \
            c_int, c_uint, c_long, c_ulong, c_void_p, byref, c_char_p, \
            Structure, Union, py_object, POINTER, pointer, sizeof, string_at
 
from ctypes.wintypes import HANDLE, ULONG, DWORD, BOOL, LPCSTR, LPCWSTR, WinError
class _US(Structure):
    _fields_ = [
        ("Offset",          DWORD),
        ("OffsetHigh",      DWORD),
    ]
 
class _U(Union):
class OVERLAPPED(Structure):
    _fields_ = [
        ("Internal",        POINTER(ULONG)),
        ("InternalHigh",    POINTER(ULONG)),
        ("u",               _U),
        ("hEvent",          HANDLE),
        # Custom fields.
class WSABUF(Structure):
    _fields_ = [
        ('len', c_ulong),
        ('buf', c_char_p)
    ]
 
class GUID(Structure):
class WSAPROTOCOLCHAIN(Structure):
    _fields_ = [
        ('ChainLen', c_int),
        ('ChainEntries', DWORD * MAX_PROTOCOL_CHAIN)
    ]
 
class WSAPROTOCOL_INFO(Structure):
class TRANSMIT_FILE_BUFFERS(Structure):
    _fields_ = [
        ('Head', c_void_p),
        ('HeadLength', DWORD),
        ('Tail', c_void_p),
        ('TailLength', DWORD)
    ]
 
class sockaddr(Structure):
class in_addr(Structure):
    _fields_ = [
        ('s_b1', c_ubyte),
        ('s_b2', c_ubyte),
        ('s_b3', c_ubyte),
        ('s_b4', c_ubyte)
    ]
 
class sockaddr_in(Structure):
class addrinfo(Structure):
    pass
 
addrinfo._fields_ = [
    ('ai_flags', c_int),
    ('ai_family', c_int),
    ('ai_socktype', c_int),

src/m/a/magickwand-0.2/magickwand/api/types.py   magickwand(Download)
from ctypes import ( c_int,
                     c_uint,
                     c_ubyte,
                     c_ushort,
                     c_double,
                     c_long,
                     c_longlong,
class SemaphoreInfo( Structure ): pass
SemaphoreInfo._fields_ = []
#------------------------------------------------------------------------------ 
class _Ascii85Info( Structure ): pass
_Ascii85Info._fields_ = []
Ascii85Info = _Ascii85Info
#------------------------------------------------------------------------------ 
class _MagickWand( Structure ): pass
_MagickWand._fields_ = []
MagickWand = _MagickWand
#------------------------------------------------------------------------------ 
class _PixelIterator( Structure ): pass
class _DrawingWand( Structure ): pass
_DrawingWand._fields_ = []
DrawingWand = _DrawingWand
#------------------------------------------------------------------------------ 
class _SignatureInfo( Structure ): pass
_SignatureInfo._fields_ = []
SignatureInfo = _SignatureInfo
#------------------------------------------------------------------------------ 
class _SplayTreeInfo( Structure ): pass
_SplayTreeInfo._fields_ = []
SplayTreeInfo = _SplayTreeInfo
#------------------------------------------------------------------------------ 
class _ViewInfo( Structure ): pass
class _LinkedListInfo( Structure ):
    pass
_LinkedListInfo._fields_ = []
LinkedListInfo = _LinkedListInfo
#------------------------------------------------------------------------------ 
class _RectangleInfo( Structure ): pass
_RectangleInfo._fields_ = [
class _ResampleFilter( Structure ): pass
_ResampleFilter._fields_ = []
ResampleFilter = _ResampleFilter
#------------------------------------------------------------------------------ 
class _MimeInfo( Structure ): pass
_MimeInfo._fields_ = []
MimeInfo = _MimeInfo
#------------------------------------------------------------------------------ 
class _LogInfo( Structure ): pass
_LogInfo._fields_ = []
LogInfo = _LogInfo
#------------------------------------------------------------------------------ 
class _BlobInfo( Structure ): pass
class _HashmapInfo( Structure ): pass
_HashmapInfo._fields_ = []
HashmapInfo = _HashmapInfo
#------------------------------------------------------------------------------ 
class _IO_FILE( Structure ): pass
FILE = _IO_FILE
#------------------------------------------------------------------------------ 
class _PixelPacket( Structure ): pass
class _ThresholdMap( Structure ): pass
_ThresholdMap._fields_ = []
ThresholdMap = _ThresholdMap
#------------------------------------------------------------------------------ 
class _TokenInfo( Structure ): pass
_TokenInfo._fields_ = []
TokenInfo = _TokenInfo
#------------------------------------------------------------------------------ 
class _PixelWand( Structure ): pass
_PixelWand._fields_ = []
PixelWand = _PixelWand
#------------------------------------------------------------------------------ 
class _PrimaryInfo( Structure ): pass
class _ErrorInfo( Structure ): pass
_ErrorInfo._pack_ = 4
_ErrorInfo._fields_ = [
    ( 'mean_error_per_pixel', c_double ),
    ( 'normalized_mean_error', c_double ),
    ( 'normalized_maximum_error', c_double ),
]
ErrorInfo = _ErrorInfo
#------------------------------------------------------------------------------ 
class _ExceptionInfo( Structure ): pass
class _QuantumInfo( Structure ): pass
_QuantumInfo._pack_ = 4
_QuantumInfo._fields_ = [
    ( 'quantum', c_ulong ),
    ( 'format', QuantumFormatType ),
    ( 'minimum', c_double ),
    ( 'maximum', c_double ),
class _QuantizeInfo( Structure ): pass
_QuantizeInfo._fields_ = [
    ( 'number_colors', c_ulong ),
    ( 'tree_depth', c_ulong ),
    ( 'dither', MagickBooleanType ),
    ( 'colorspace', ColorspaceType ),
    ( 'measure_error', MagickBooleanType ),
    ( 'signature', c_ulong ),
]
QuantizeInfo = _QuantizeInfo
#------------------------------------------------------------------------------ 
class _StringInfo( Structure ): pass
class _LongPixelPacket( Structure ): pass
_LongPixelPacket._fields_ = [
    ( 'red', c_ulong ),
    ( 'green', c_ulong ),
    ( 'blue', c_ulong ),
    ( 'opacity', c_ulong ),
    ( 'index', c_ulong ),
]
LongPixelPacket = _LongPixelPacket
#------------------------------------------------------------------------------ 
class _OptionInfo( Structure ): pass
class _MontageInfo( Structure ): pass
_MontageInfo._pack_ = 4
_MontageInfo._fields_ = [
    ( 'geometry', STRING ),
    ( 'tile', STRING ),
    ( 'title', STRING ),
    ( 'frame', STRING ),
class _ModuleInfo( Structure ): pass
__time_t = c_long
time_t = __time_t
_ModuleInfo._fields_ = [
    ( 'path', STRING ),
    ( 'tag', STRING ),
    ( 'handle', c_void_p ),
class _MagicInfo( Structure ): pass
_MagicInfo._pack_ = 4
_MagicInfo._fields_ = [
    ( 'path', STRING ),
    ( 'name', STRING ),
    ( 'target', STRING ),
    ( 'magic', POINTER( c_ubyte ) ),
class _LocaleInfo( Structure ): pass
_LocaleInfo._fields_ = [
    ( 'path', STRING ),
    ( 'tag', STRING ),
    ( 'message', STRING ),
    ( 'stealth', MagickBooleanType ),
    ( 'previous', POINTER( _LocaleInfo ) ),
    ( 'next', POINTER( _LocaleInfo ) ),
    ( 'signature', c_ulong ),
]
LocaleInfo = _LocaleInfo
#------------------------------------------------------------------------------ 
class _Timer( Structure ): pass
class _TimerInfo( Structure ): pass
_TimerInfo._fields_ = [
    ( 'user', Timer ),
    ( 'elapsed', Timer ),
    ( 'state', TimerState ),
    ( 'signature', c_ulong ),
]
TimerInfo = _TimerInfo
#------------------------------------------------------------------------------ 
class _ProfileInfo( Structure ): pass
class _ChromaticityInfo( Structure ): pass
_ChromaticityInfo._fields_ = [
    ( 'red_primary', PrimaryInfo ),
    ( 'green_primary', PrimaryInfo ),
    ( 'blue_primary', PrimaryInfo ),
    ( 'white_point', PrimaryInfo ),
]
ChromaticityInfo = _ChromaticityInfo
#------------------------------------------------------------------------------
MagickProgressMonitor = CFUNCTYPE( MagickBooleanType, STRING, MagickOffsetType, MagickSizeType, c_void_p )
#------------------------------------------------------------------------------ 
class _Image( Structure ): pass
class _ImageInfo( Structure ): pass
ImageInfo = _ImageInfo
_ImageInfo._pack_ = 4
_ImageInfo._fields_ = [
    ( 'compression', CompressionType ),
    ( 'orientation', OrientationType ),
    ( 'temporary', MagickBooleanType ),
class _GeometryInfo( Structure ): pass
_GeometryInfo._pack_ = 4
_GeometryInfo._fields_ = [
    ( 'rho', c_double ),
    ( 'sigma', c_double ),
    ( 'xi', c_double ),
    ( 'psi', c_double ),
    ( 'chi', c_double ),
]
GeometryInfo = _GeometryInfo
#------------------------------------------------------------------------------ 
class _FrameInfo( Structure ): pass
class _CoderInfo( Structure ): pass
_CoderInfo._fields_ = [
    ( 'path', STRING ),
    ( 'magick', STRING ),
    ( 'name', STRING ),
    ( 'stealth', MagickBooleanType ),
    ( 'previous', POINTER( _CoderInfo ) ),
    ( 'next', POINTER( _CoderInfo ) ),
    ( 'signature', c_ulong ),
]
CoderInfo = _CoderInfo
#------------------------------------------------------------------------------ 
class _DelegateInfo( Structure ): pass
class _ImageAttribute( Structure ): pass
_ImageAttribute._fields_ = [
    ( 'key', STRING ),
    ( 'value', STRING ),
    ( 'compression', MagickBooleanType ),
    ( 'previous', POINTER( _ImageAttribute ) ),
    ( 'next', POINTER( _ImageAttribute ) ),
]
ImageAttribute = _ImageAttribute
#------------------------------------------------------------------------------ 
class _DoublePixelPacket( Structure ): pass
class _MagickPixelPacket( Structure ): pass
_MagickPixelPacket._pack_ = 4
_MagickPixelPacket._fields_ = [
    ( 'storage_class', ClassType ),
    ( 'colorspace', ColorspaceType ),
    ( 'matte', MagickBooleanType ),
    ( 'fuzz', c_double ),
class _ColorInfo( Structure ): pass
_ColorInfo._fields_ = [
    ( 'path', STRING ),
    ( 'name', STRING ),
    ( 'compliance', ComplianceType ),
    ( 'color', MagickPixelPacket ),
    ( 'stealth', MagickBooleanType ),
    ( 'previous', POINTER( _ColorInfo ) ),
    ( 'next', POINTER( _ColorInfo ) ),
    ( 'signature', c_ulong ),
]
ColorInfo = _ColorInfo
#------------------------------------------------------------------------------ 
class _ColorPacket( Structure ): pass
class _ConfigureInfo( Structure ): pass
_ConfigureInfo._fields_ = [
    ( 'path', STRING ),
    ( 'name', STRING ),
    ( 'value', STRING ),
    ( 'stealth', MagickBooleanType ),
    ( 'previous', POINTER( _ConfigureInfo ) ),
    ( 'next', POINTER( _ConfigureInfo ) ),
    ( 'signature', c_ulong ),
]
ConfigureInfo = _ConfigureInfo
#------------------------------------------------------------------------------ 
class _ChannelStatistics( Structure ): pass
class _TypeInfo( Structure ): pass
_TypeInfo._fields_ = [
    ( 'face', c_ulong ),
    ( 'path', STRING ),
    ( 'name', STRING ),
    ( 'description', STRING ),
    ( 'family', STRING ),
class _XMLTreeInfo( Structure ): pass
_XMLTreeInfo._fields_ = []
XMLTreeInfo = _XMLTreeInfo
#------------------------------------------------------------------------------ 
class _XImportInfo( Structure ): pass
_XImportInfo._fields_ = [
    ( 'frame', MagickBooleanType ),
class _StopInfo( Structure ): pass
_StopInfo._pack_ = 4
_StopInfo._fields_ = [
    ( 'color', MagickPixelPacket ),
    ( 'offset', MagickRealType ),
]
StopInfo = _StopInfo
class _SegmentInfo( Structure ): pass
class _GradientInfo( Structure ): pass
_GradientInfo._fields_ = [
    ( 'type', GradientType ),
    ( 'bounding_box', RectangleInfo ),
    ( 'gradient_vector', SegmentInfo ),
    ( 'stops', POINTER( StopInfo ) ),
    ( 'number_stops', c_ulong ),
    ( 'spread', SpreadMethod ),
    ( 'debug', MagickBooleanType ),
    ( 'signature', c_ulong ),
]
GradientInfo = _GradientInfo
#------------------------------------------------------------------------------
class _AffineMatrix( Structure ): pass
class _ElementReference( Structure ): pass
ElementReference = _ElementReference
_ElementReference._fields_ = [
    ( 'id', STRING ),
    ( 'type', ReferenceType ),
    ( 'gradient', GradientInfo ),
    ( 'signature', c_ulong ),
    ( 'previous', POINTER( _ElementReference ) ),
    ( 'next', POINTER( _ElementReference ) )
]
#------------------------------------------------------------------------------ 
class _DrawInfo( Structure ): pass
class _PointInfo( Structure ): pass
_PointInfo._pack_ = 4
_PointInfo._fields_ = [
    ( 'x', c_double ),
    ( 'y', c_double ),
]
PointInfo = _PointInfo
#------------------------------------------------------------------------------ 
class _PrimitiveInfo( Structure ): pass
class _TypeMetric( Structure ): pass
TypeMetric = _TypeMetric
_TypeMetric._pack_ = 4
_TypeMetric._fields_ = [
    ( 'pixels_per_em', PointInfo ),
    ( 'ascent', c_double ),
    ( 'descent', c_double ),
class _MagickInfo( Structure ): pass
_MagickInfo._fields_ = [
    ( 'name', STRING ),
    ( 'description', STRING ),
    ( 'version', STRING ),
    ( 'note', STRING ),
    ( 'module', STRING ),

src/b/r/brash-HEAD/windef.py   brash(Download)
#FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
#OTHER DEALINGS IN THE SOFTWARE.
 
from ctypes import c_void_p, c_int64, c_uint64, c_int32, c_uint32, c_int16, c_uint16, c_int8, c_uint8, c_float, c_char, c_char_p, c_wchar, c_wchar_p, HRESULT, POINTER, WINFUNCTYPE, Structure, Union, windll
import winlitecfg
 
_dll = windll.ntdll
class LUID(Structure):
    _fields_ = [
        ('LowPart', DWORD),
        ('HighPart', LONG),
        ]
PLUID = POINTER(LUID)
 
class SIZE(Structure):
    _fields_ = [
        ('cx', LONG),
        ('cy', LONG),
        ]
PSIZE = LPSIZE = POINTER(SIZE)
 
SIZEL = SIZE
PSIZEL = LPSIZEL = POINTER(SIZEL)
 
class POINT(Structure):
class POINTL(Structure):
    _fields_ = [
        ('x', LONG),
        ('y', LONG),
        ]
PPOINTL = POINTER(POINTL)
 
class POINTS(Structure):
class FILETIME(Structure):
    _fields_ = [
        ('dwLowDateTime', DWORD),
        ('dwHighDateTime', DWORD),
        ]
PFILETIME = LPFILETIME = POINTER(FILETIME)
 
class RECT(Structure):
class RECTL(Structure):
    _fields_ = [
        ('left', LONG),
        ('top', LONG),
        ('right', LONG),
        ('bottom', LONG),
        ]

src/p/y/python-libusb1-HEAD/libusb1.py   python-libusb1(Download)
# libusb-1.0 python wrapper
from ctypes import Structure, \
                   CFUNCTYPE, POINTER, sizeof, cast, \
                   c_short, c_int, c_uint, c_size_t, c_long, \
                   c_uint8, c_uint16, \
                   c_void_p, c_char_p, py_object, string_at
from ctypes.util import find_library
class timeval(Structure):
    _fields_ = [('tv_sec', c_long),
                ('tv_usec', c_long)]
timeval_p = POINTER(timeval)
 
def _loadLibrary():
    system = platform.system()
class libusb_device_descriptor(Structure):
    _fields_ = [# Size of this descriptor (in bytes)
                ('bLength', c_uint8),
                # Descriptor type. Will have value LIBUSB_DT_DEVICE in this
                # context.
                ('bDescriptorType', c_uint8),
                # USB specification release number in binary-coded decimal. A
class libusb_endpoint_descriptor(Structure):
    _fields_ = [('bLength', c_uint8),
                ('bDescriptorType', c_uint8),
                ('bEndpointAddress', c_uint8),
                ('bmAttributes', c_uint8),
                ('wMaxPacketSize', c_uint16),
                ('bInterval', c_uint8),
                ('bRefresh', c_uint8),
                ('bSynchAddress', c_uint8),
                ('extra', c_char_p),
                ('extra_length', c_int)]
libusb_endpoint_descriptor_p = POINTER(libusb_endpoint_descriptor)
 
class libusb_interface_descriptor(Structure):
class libusb_interface(Structure):
    _fields_ = [('altsetting', libusb_interface_descriptor_p),
                ('num_altsetting', c_int)]
libusb_interface_p = POINTER(libusb_interface)
 
class libusb_config_descriptor(Structure):
    _fields_ = [('bLength', c_uint8),
class libusb_control_setup(Structure):
    _fields_ = [('bRequestType', c_uint8),
                ('bRequest', c_uint8),
                ('wValue', c_uint16),
                ('wIndex', c_uint16),
                ('wLength', c_uint16)]
libusb_control_setup_p = POINTER(libusb_control_setup)
class libusb_context(Structure):
    pass
libusb_context_p = POINTER(libusb_context)
libusb_context_p_p = POINTER(libusb_context_p)
 
# Structure representing a USB device detected on the system. This is an
# opaque type for which you are only ever provided with a pointer, usually
class libusb_device(Structure):
    pass
libusb_device_p = POINTER(libusb_device)
libusb_device_p_p = POINTER(libusb_device_p)
libusb_device_p_p_p = POINTER(libusb_device_p_p)
 
# Structure representing a handle on a USB device. This is an opaque type for
# which you are only ever provided with a pointer, usually originating from
# libusb_open().
#
# A device handle is used to perform I/O and other operations. When finished
# with a device handle, you should call libusb_close().
class libusb_device_handle(Structure):
class libusb_iso_packet_descriptor(Structure):
    _fields_ = [('length', c_uint),
                ('actual_length', c_uint),
                ('status', c_int)] # enum libusb_transfer_status
libusb_iso_packet_descriptor_p = POINTER(libusb_iso_packet_descriptor)
 
class libusb_transfer(Structure):
class libusb_pollfd(Structure):
    _fields_ = [('fd', c_int),
                ('events', c_short)]
libusb_pollfd_p = POINTER(libusb_pollfd)
libusb_pollfd_p_p = POINTER(libusb_pollfd_p)
 
libusb_pollfd_added_cb_p = CFUNCTYPE(None, c_int, c_short, py_object)

src/e/v/eventghost-HEAD/trunk/plugins/PS3/__init__.py   eventghost(Download)
import wx
import wx.lib.mixins.listctrl as listmix
 
from ctypes import Structure, Union, c_byte, c_ubyte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar
from ctypes import pointer, byref, sizeof, POINTER
from ctypes.wintypes import ULONG, BOOLEAN, BOOL
 
class GUID(Structure):
    _fields_ = [
        ("Data1", c_ulong),
        ("Data2", c_ushort),
        ("Data3", c_ushort),
        ("Data4", c_byte * 8)
    ]
 
class SP_DEVICE_INTERFACE_DATA(Structure):
class SP_DEVICE_INTERFACE_DETAIL_DATA_A(Structure):
    _fields_ = [("cbSize", c_ulong),
        ("DevicePath", c_char * 255)
    ]
 
class HIDD_ATTRIBUTES(Structure):
    _fields_ = [("cbSize", c_ulong),
        ("VendorID", c_ushort),
        ("ProductID", c_ushort),
        ("VersionNumber", c_ushort)
    ]
 
class HIDP_CAPS(Structure):
    class HIDP_BUTTON_CAPS_RANGE(Structure):
        _fields_ = [
            ("UsageMin", c_ushort),
            ("UsageMax", c_ushort),
            ("StringMin", c_ushort),
            ("StringMax", c_ushort),
            ("DesignatorMin", c_ushort),
            ("DesignatorMax", c_ushort),
            ("DataIndexMin", c_ushort),
            ("DataIndexMax", c_ushort)
        ]
 
    class HIDP_BUTTON_CAPS_NOT_RANGE(Structure):
class HIDP_BUTTON_CAPS(Structure):
    _fields_ = [
        ("UsagePage", c_ushort),
        ("ReportID", c_char),
        ("IsAlias", BOOLEAN),
        ("BitField", c_ushort),
        ("LinkCollection", c_ushort),
class HIDP_VALUE_CAPS(Structure):
    _fields_ = [
        ("UsagePage", c_ushort),
        ("ReportID", c_char),
        ("IsAlias", BOOLEAN),
        ("BitField", c_ushort),
        ("LinkCollection", c_ushort),
class HIDP_DATA(Structure):
    class HIDP_DATA_VALUE(Union):
        _fields_ = [
            ("RawValue", c_ulong),
            ("On", BOOLEAN),
        ]
 

src/e/v/eventghost-HEAD/plugins/PS3/__init__.py   eventghost(Download)
import wx
import wx.lib.mixins.listctrl as listmix
 
from ctypes import Structure, Union, c_byte, c_ubyte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar
from ctypes import pointer, byref, sizeof, POINTER
from ctypes.wintypes import ULONG, BOOLEAN, BOOL
 
class GUID(Structure):
    _fields_ = [
        ("Data1", c_ulong),
        ("Data2", c_ushort),
        ("Data3", c_ushort),
        ("Data4", c_byte * 8)
    ]
 
class SP_DEVICE_INTERFACE_DATA(Structure):
class SP_DEVICE_INTERFACE_DETAIL_DATA_A(Structure):
    _fields_ = [("cbSize", c_ulong),
        ("DevicePath", c_char * 255)
    ]
 
class HIDD_ATTRIBUTES(Structure):
    _fields_ = [("cbSize", c_ulong),
        ("VendorID", c_ushort),
        ("ProductID", c_ushort),
        ("VersionNumber", c_ushort)
    ]
 
class HIDP_CAPS(Structure):
    class HIDP_BUTTON_CAPS_RANGE(Structure):
        _fields_ = [
            ("UsageMin", c_ushort),
            ("UsageMax", c_ushort),
            ("StringMin", c_ushort),
            ("StringMax", c_ushort),
            ("DesignatorMin", c_ushort),
            ("DesignatorMax", c_ushort),
            ("DataIndexMin", c_ushort),
            ("DataIndexMax", c_ushort)
        ]
 
    class HIDP_BUTTON_CAPS_NOT_RANGE(Structure):
class HIDP_BUTTON_CAPS(Structure):
    _fields_ = [
        ("UsagePage", c_ushort),
        ("ReportID", c_char),
        ("IsAlias", BOOLEAN),
        ("BitField", c_ushort),
        ("LinkCollection", c_ushort),
class HIDP_VALUE_CAPS(Structure):
    _fields_ = [
        ("UsagePage", c_ushort),
        ("ReportID", c_char),
        ("IsAlias", BOOLEAN),
        ("BitField", c_ushort),
        ("LinkCollection", c_ushort),
class HIDP_DATA(Structure):
    class HIDP_DATA_VALUE(Union):
        _fields_ = [
            ("RawValue", c_ulong),
            ("On", BOOLEAN),
        ]
 

src/e/v/eventghost-HEAD/trunk/plugins/HID/__init__.py   eventghost(Download)
import win32file
import wx.lib.mixins.listctrl as listmix
 
from ctypes import Structure, Union, c_byte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar
from ctypes import pointer, byref, sizeof, POINTER
from ctypes.wintypes import ULONG, BOOLEAN
 
class GUID(Structure):
    _fields_ = [
        ("Data1", c_ulong),
        ("Data2", c_ushort),
        ("Data3", c_ushort),
        ("Data4", c_byte * 8)
    ]
 
class SP_DEVICE_INTERFACE_DATA(Structure):
class SP_DEVICE_INTERFACE_DETAIL_DATA_A(Structure):
    _fields_ = [("cbSize", c_ulong),
        ("DevicePath", c_char * 255)
    ]
 
class HIDD_ATTRIBUTES(Structure):
    _fields_ = [("cbSize", c_ulong),
        ("VendorID", c_ushort),
        ("ProductID", c_ushort),
        ("VersionNumber", c_ushort)
    ]
 
class HIDP_CAPS(Structure):
    class HIDP_BUTTON_CAPS_RANGE(Structure):
        _fields_ = [
            ("UsageMin", c_ushort),
            ("UsageMax", c_ushort),
            ("StringMin", c_ushort),
            ("StringMax", c_ushort),
            ("DesignatorMin", c_ushort),
            ("DesignatorMax", c_ushort),
            ("DataIndexMin", c_ushort),
            ("DataIndexMax", c_ushort)
        ]
 
    class HIDP_BUTTON_CAPS_NOT_RANGE(Structure):
class HIDP_BUTTON_CAPS(Structure):
    _fields_ = [
        ("UsagePage", c_ushort),
        ("ReportID", c_char),
        ("IsAlias", BOOLEAN),
        ("BitField", c_ushort),
        ("LinkCollection", c_ushort),
class HIDP_VALUE_CAPS(Structure):
    _fields_ = [
        ("UsagePage", c_ushort),
        ("ReportID", c_char),
        ("IsAlias", BOOLEAN),
        ("BitField", c_ushort),
        ("LinkCollection", c_ushort),
class HIDP_DATA(Structure):
    class HIDP_DATA_VALUE(Union):
        _fields_ = [
            ("RawValue", c_ulong),
            ("On", BOOLEAN),
        ]
 

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.4-NED/version_1/meresco/components/facetindex/docsetlist.py   meresco(Download)
 
from sys import maxint
from itertools import islice
from ctypes import c_uint32, c_char_p, POINTER, cdll, pointer, py_object, Structure, c_ulong, c_int, c_float, cast
from libfacetindex import libFacetIndex
from docset import DocSet, DOCSET
from merescolucene import IndexReader
from integerlist import IntegerList
from cq2utils import deallocator
 
DOCSETLIST = POINTER(None)
CARDINALITYLIST = POINTER(None)
 
class cardinality_t(Structure):
        class cardinality_t_RAW(Structure):
            _fields_ = [('term',        POINTER(None)),
                        ('cardinality', c_uint32)]
        cardinalityList_at_original_restype = CardinalityList_at.restype
        try:
            CardinalityList_at.restype = POINTER(cardinality_t_RAW)
            return self._iterCardinalityList(DocSetList_combinedCardinalities(self, docset, maxint, False))

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.4-NED/version_0/meresco/components/facetindex/docsetlist.py   meresco(Download)
 
from sys import maxint
from itertools import islice
from ctypes import c_uint32, c_char_p, POINTER, cdll, pointer, py_object, Structure, c_ulong, c_int, c_float, cast
from libfacetindex import libFacetIndex
from docset import DocSet, DOCSET
from merescolucene import IndexReader
from integerlist import IntegerList
from cq2utils import deallocator
 
DOCSETLIST = POINTER(None)
CARDINALITYLIST = POINTER(None)
 
class cardinality_t(Structure):
        class cardinality_t_RAW(Structure):
            _fields_ = [('term',        POINTER(None)),
                        ('cardinality', c_uint32)]
        cardinalityList_at_original_restype = CardinalityList_at.restype
        try:
            CardinalityList_at.restype = POINTER(cardinality_t_RAW)
            return self._iterCardinalityList(DocSetList_combinedCardinalities(self, docset, maxint, False))

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next