/usr/include/falcon/dll_base.h is in falconpl-dev 0.9.6.9-git20120606-2.
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 | /*
FALCON - The Falcon Programming Language.
FILE: flc_dll.h
Base class for Dynamic load system
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: mar ago 3 2004
-------------------------------------------------------------------
(C) Copyright 2004: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
#ifndef flc_DLL_BASE_H
#define flc_DLL_BASE_H
#include <falcon/string.h>
namespace Falcon
{
class DllFunc
{
void *m_data;
public:
DllFunc( void *data ):
m_data(data)
{}
void *data() const { return m_data; }
void data( void *dt ) { m_data = dt; }
};
class DllLoader_base
{
public:
DllLoader_base() {}
virtual ~DllLoader_base() {}
virtual bool open( const String &dll_name ) = 0;
virtual bool close() = 0;
virtual DllFunc getSymbol( const String &sym_name ) const = 0;
virtual void getErrorDescription( String &descr ) const = 0;
static bool isDllMark( char ch1, char ch2 ) { return false; }
static const char *dllExt() { return ""; }
};
}
#endif
/* end of flc_dll.h */
|