File: plugin.h

package info (click to toggle)
cdebconf 0.138lenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,184 kB
  • ctags: 1,371
  • sloc: ansic: 14,158; sh: 469; makefile: 429; sql: 51; 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