File: plugin.h

package info (click to toggle)
cdebconf 0.182
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,668 kB
  • sloc: ansic: 16,289; sh: 547; makefile: 438; sql: 52; perl: 13
file content (26 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (9)
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