Debian Codegraph @

lib/gvc/gvplugin_loadimage.h

raw
1 /// @file
2 /// @ingroup plugin_api
3 /*************************************************************************
4 * Copyright (c) 2011 AT&T Intellectual Property
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * https://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors: Details at https://graphviz.org
11 *************************************************************************/
12
13 #pragma once
14
15 #include "types.h"
16 #include "gvplugin.h"
17 #include "gvcjob.h"
18 #include <stdbool.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /// @cond
25
26 #ifdef GVDLL
27 #ifdef GVC_EXPORTS
28 #define GVPLUGIN_LOADIMAGE_API __declspec(dllexport)
29 #else
30 #define GVPLUGIN_LOADIMAGE_API __declspec(dllimport)
31 #endif
32 #endif
33
34 #ifndef GVPLUGIN_LOADIMAGE_API
35 #define GVPLUGIN_LOADIMAGE_API /* nothing */
36 #endif
37
38 /// @endcond
39
40 /// @ingroup plugin_api
41 /// @{
42
43 GVPLUGIN_LOADIMAGE_API bool gvusershape_file_access(usershape_t *us);
44 GVPLUGIN_LOADIMAGE_API void gvusershape_file_release(usershape_t *us);
45
46 struct gvloadimage_engine_s {
47 void (*loadimage) (GVJ_t *job, usershape_t *us, boxf b, bool filled);
48 };
49
50 /// @}
51
52 #undef GVPLUGIN_LOADIMAGE_API
53
54 #ifdef __cplusplus
55 }
56 #endif