File: fp_wget.c

package info (click to toggle)
pcb-rnd 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 35,428 kB
  • sloc: ansic: 249,627; yacc: 5,981; sh: 5,748; makefile: 3,595; awk: 2,704; lex: 1,094; python: 519; lisp: 169; xml: 128; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (36 lines) | stat: -rw-r--r-- 849 bytes parent folder | download
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
35
36
#include "config.h"
#include "gedasymbols.h"
#include "edakrill.h"
#include <librnd/core/plugins.h>
#include "fp_wget_conf.h"
#include "../src_plugins/fp_wget/conf_internal.c"


conf_fp_wget_t conf_fp_wget;

#define FP_WGET_CONF_FN "fp_wget.conf"

int pplg_check_ver_fp_wget(int ver_needed) { return 0; }

void pplg_uninit_fp_wget(void)
{
	rnd_conf_unreg_file(FP_WGET_CONF_FN, fp_wget_conf_internal);
	fp_gedasymbols_uninit();
	fp_edakrill_uninit();
	rnd_conf_unreg_fields("plugins/fp_wget/");
}

int pplg_init_fp_wget(void)
{
	RND_API_CHK_VER;

#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \
	rnd_conf_reg_field(conf_fp_wget, field,isarray,type_name,cpath,cname,desc,flags);
#include "fp_wget_conf_fields.h"

	rnd_conf_reg_file(FP_WGET_CONF_FN, fp_wget_conf_internal);

	fp_gedasymbols_init();
	fp_edakrill_init();
	return 0;
}