00001 #ifndef __XRDSYSPLUGIN__ 00002 #define __XRDSYSPLUGIN__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d S y s P l u g i n . h h */ 00006 /* */ 00007 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id: XrdSysPlugin.hh,v 1.2 2007/07/31 02:26:47 abh Exp $ 00014 00015 class XrdSysError; 00016 00017 class XrdSysPlugin 00018 { 00019 public: 00020 00021 void *getPlugin(const char *pname, int errok=0); 00022 00023 XrdSysPlugin(XrdSysError *erp, const char *path) 00024 {eDest = erp; libPath = path; libHandle = 0;} 00025 ~XrdSysPlugin(); 00026 00027 private: 00028 00029 XrdSysError *eDest; 00030 const char *libPath; 00031 void *libHandle; 00032 }; 00033 #endif
1.7.1