File: Library.h

package info (click to toggle)
w-scan-cpp 0~20230121-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,008 kB
  • sloc: ansic: 69,193; cpp: 9,599; makefile: 1,149; perl: 862; python: 74; sh: 70
file content (34 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (2)
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);