File: vmg_plugin_interface.h

package info (click to toggle)
vmg 3.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,528 kB
  • sloc: pascal: 5,160; cpp: 605; sh: 278; lex: 105; ansic: 68; makefile: 37
file content (40 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (7)
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
37
38
39
40
#ifndef _VMG_PLUGIN_INTERFACE_H_
#define _VMG_PLUGIN_INTERFACE_H_

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */

/* Definition of Pascal data types */

/* Cardinal is a unsigned 32-bits integer */
#define Cardinal unsigned int

/* Integer is a signed 32-bits integer */
#define Integer int

/* PInteger is a pointer to a Integer */
#define PInteger Integer*

/*  Plugin data structure */
struct TPluginData
{
    Cardinal DesktopWidth;
    Cardinal DesktopHeight;
    double* Magnification;
    PInteger GlassTop;
    PInteger GlassLeft;
    PInteger GlassWidth;
    PInteger GlassHeight;
    Integer  PluginData;
};

/* Prototypes of the exported functions */

DLLIMPORT Cardinal Initialize (struct TPluginData vPluginData);
DLLIMPORT void Finalize (void);


#endif /* VMG_PLUGIN_INTERFACE_H_ */