-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLibrary.h
34 lines (28 loc) · 886 Bytes
/
Library.h
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
/******************************************************************************
* w_scan_cpp - a dtv channel scanner based on VDR (www.tvdr.de) and it's
* Plugins.
*
* See the README file for copyright information and how to reach the author.
*****************************************************************************/
#pragma once
#include "Helpers.h"
class Library {
public:
typedef cPlugin* create_t (void);
typedef void destroy_t(cPlugin*);
private:
std::vector<std::string> args;
std::vector<char*> argv;
cPlugin* plugin;
/* invoke plugin factory */
void* handle;
create_t* create;
destroy_t* destroy;
public:
Library(std::string FileName, std::string Arguments);
virtual ~Library();
cPlugin* Plugin(void);
};
extern std::vector<Library*> libs;
void UnloadLibraries(void);
bool SVDRP(cPlugin* Plugin, std::string Command, std::string& Reply);