File: dynlib-api.h

package info (click to toggle)
mmlib 1.4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,716 kB
  • sloc: ansic: 18,071; makefile: 431; sh: 135; python: 63
file content (31 lines) | stat: -rw-r--r-- 430 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
/*
   @mindmaze_header@
*/
#ifndef DYNLIB_API_H
#define DYNLIB_API_H

#ifdef __cplusplus
extern "C" {
#endif

#define INITIAL_INTVAL  0xdeadbeef
#define INITIAL_STR     "str is init"

struct dynlib_data {
	int intval;
	char str[32];
};

struct dynlib_vtab {
	void (*set_data)(int, const char*);
	void (*reset_data)(void);
	int (*read_internal_code)(void);
	void (*set_internal_code)(int);
};


#ifdef __cplusplus
}
#endif

#endif