File: plugin.h

package info (click to toggle)
cdebconf 0.249
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,560 kB
  • sloc: ansic: 16,595; sh: 549; makefile: 461; sql: 52; perl: 13
file content (26 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (11)
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
/**
 * @file plugin.h
 * @brief interfaces for handling custom debconf widget implementations
 */
#ifndef _PLUGIN_H_
#define _PLUGIN_H_

struct configuration;
struct frontend;
struct question;

struct plugin {
    /** type name */
    char *name;
    /** library module handle */
    void *module;
    /** handler function */
    void *handler;
};

struct plugin *plugin_new(const char *frontend, const char *filename);
void plugin_delete(struct plugin *plugin);
struct plugin *plugin_find(struct frontend *frontend, const char *name);
struct plugin *plugin_iterate(struct frontend *frontend, void **state);

#endif