/usr/include/openh323/hid.h is in libopenh323-dev 1.18.0.dfsg-10build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | /*
* hid.h
*
* Virteos HID Implementation for the OpenH323 Project.
*
* Virteos is a Trade Mark of ISVO (Asia) Pte Ltd.
*
* Copyright (c) 2005 ISVO (Asia) Pte Ltd. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Initial Developer of the Original Code is ISVO (Asia) Pte Ltd.
*
*
* Contributor(s): ______________________________________.
*
* $Log: hid.h,v $
* Revision 1.3 2005/07/13 18:01:01 shorne
* Added HIDdevices::AddAllHIDs
*
* Revision 1.2 2005/07/06 11:15:25 shorne
* Added HIDdevices::PrintOn
*
* Revision 1.1 2005/07/03 14:38:42 shorne
* *** empty log message ***
*
*
*/
#include <ptlib.h>
#include <lid.h>
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifdef _MSC_VER
#pragma warning(disable:4100)
#endif
PDECLARE_LIST(HIDDevices, OpalLineInterfaceDevice)
#ifdef DOC_PLUS_PLUS
{
#endif
public:
BOOL HasAvailDevice();
OpalLineInterfaceDevice * AvailDevice();
BOOL AddAllHIDs(const PString & name);
void PrintOn(ostream & strm) const;
};
class HIDPluginDeviceManager : public PPluginModuleManager
{
PCLASSINFO(HIDPluginDeviceManager, PPluginModuleManager);
public:
HIDPluginDeviceManager(PPluginManager * pluginMgr = NULL);
~HIDPluginDeviceManager();
void OnLoadPlugin(PDynaLink & dll, INT code);
virtual void OnShutdown();
static void Bootstrap();
virtual BOOL RegisterHID(unsigned int count, void * _HIDList);
virtual BOOL UnregisterHID(unsigned int count, void * _HIDList);
void CreateHIDDevice(PluginHID_Definition * HIDDevice);
};
static PFactory<PPluginModuleManager>::Worker<HIDPluginDeviceManager> h323PluginCodecManagerFactory("HIDPluginDeviceManager", true);
///////////////////////////////////////////////////////////////////////////////
typedef PFactory<OpalLineInterfaceDevice> HIDFactory;
#define HID_REGISTER_DEVICE(cls, HIDName) static HIDFactory::Worker<cls> cls##Factory(HIDName, true); \
#define HID_DEFINE_DEVICE(cls, HIDName, fmtName) \
class cls : public OpalLineInterfaceDevice { \
public: \
cls() : OpalLineInterfaceDevice() { } \
PString GetName() const \
{ return fmtName; } \
}; \
HID_REGISTER_DEVICE(cls, capName) \
/////////////////////////////////////////////////////////////////////////////
|