sipxportlib  Version 3.3
OsSharedLibMgrLinux.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #ifndef _OsSharedLibMgrLinux_h_
12 #define _OsSharedLibMgrLinux_h_
13 
14 // SYSTEM INCLUDES
15 //#include <...>
16 
17 // APPLICATION INCLUDES
18 #include <os/OsSharedLibMgr.h>
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 
29 //:Class short description which may consist of multiple lines (note the ':')
30 // Class detailed description which may extend to multiple lines
32 {
33 /* //////////////////////////// PUBLIC //////////////////////////////////// */
34  friend class OsSharedLibMgrBase;
35 
36 public:
37 
38 /* ============================ CREATORS ================================== */
39 
40  virtual
42  //:Destructor
43 
44 /* ============================ MANIPULATORS ============================== */
45 
46  virtual OsStatus loadSharedLib(const char* libName);
47  //: Loads the given shared library
49 
50  virtual OsStatus getSharedLibSymbol(const char* libName,
51  const char* symbolName,
52  void*& symbolAddress);
53  //: Gets the address of a symbol in the shared lib
57 
58  virtual OsStatus unloadSharedLib(const char* libName);
59  //: Unloads the given shared library
60  // Before unloading library make sure that no one else use it!
62 
63 /* ============================ ACCESSORS ================================= */
64 
65 /* ============================ INQUIRY =================================== */
66 
67 /* //////////////////////////// PROTECTED ///////////////////////////////// */
68 protected:
70  //:Default constructor disallowed, use getOsSharedLibMgr
71 
72 /* //////////////////////////// PRIVATE /////////////////////////////////// */
73 private:
74 
75  OsSharedLibMgrLinux(const OsSharedLibMgrLinux& rOsSharedLibMgrLinux);
76  //:Copy constructor
77 
78  OsSharedLibMgrLinux& operator=(const OsSharedLibMgrLinux& rhs);
79  //:Assignment operator
80 
81 };
82 
83 /* ============================ INLINE METHODS ============================ */
84 
85 #endif // _OsSharedLibMgrLinux_h_
86 
87 
virtual ~OsSharedLibMgrLinux()
Definition: OsSharedLibMgrLinux.cpp:59
OsSharedLibMgrLinux()
param: libName - name of library, may include absolute or relative path
Definition: OsSharedLibMgrLinux.cpp:49
virtual OsStatus loadSharedLib(const char *libName)
param: libName - name of library, may include absolute or relative path
Definition: OsSharedLibMgrLinux.cpp:67
virtual OsStatus getSharedLibSymbol(const char *libName, const char *symbolName, void *&symbolAddress)
param: libName - name of library, may include absolute or relative path
Definition: OsSharedLibMgrLinux.cpp:119
OsStatus
Definition: OsStatus.h:27
Definition: OsSharedLibMgrLinux.h:31
Definition: OsSharedLibMgr.h:34
virtual OsStatus unloadSharedLib(const char *libName)
param: (in) libName - name of library, may include absolute or relative path param: (in) symbolName -...
Definition: OsSharedLibMgrLinux.cpp:177