/* NSIS plug-in library header * By Daniel Collins * * This code is public domain, I grant permission for anyone to use, modify or * redistribute this code in any way, for any purpose in any application, under * any license. * * This code has NO WARRANTY, if it fails to work, causes your program to crash * or causes any damage, I accept NO RESPONSIBILITY for it. But if you find a * bug, email me and I will try to fix it :) */ #ifndef NSPLUGIN_H #define NSPLUGIN_H typedef struct _stack_t { struct _stack_t *next; char text[1]; } stack_t; typedef __declspec(dllexport) void nsis_function; void nsis_init(HWND hwnd, int vsize, char *vars, stack_t **stack); char *nsis_var(char const *name); int nsis_push(char const *value); int nsis_pop(char *buf); #endif /* !NSPLUGIN_H */