commit much of the virtualization support, stubbed out
[moon.git] / plugin / cbinding.cpp
blob1c82ab854fe3d84d8b2742a683c9db0a78f4c74c
1 /*
2 * Automatically generated, do not edit this file directly
3 */
5 #include <config.h>
7 #include <stdio.h>
8 #include <stdlib.h>
10 #include "cbinding.h"
12 #include "plugin.h"
13 /**
14 * PluginInstance
15 **/
16 void *
17 plugin_instance_evaluate (PluginInstance *instance, const char *code)
19 if (instance == NULL)
20 return NULL;
22 return instance->Evaluate (code);
26 gint32
27 plugin_instance_get_actual_height (PluginInstance *instance)
29 if (instance == NULL)
30 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
31 return (gint32) 0;
33 return instance->GetActualHeight ();
37 gint32
38 plugin_instance_get_actual_width (PluginInstance *instance)
40 if (instance == NULL)
41 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
42 return (gint32) 0;
44 return instance->GetActualWidth ();
48 bool
49 plugin_instance_get_allow_html_popup_window (PluginInstance *instance)
51 if (instance == NULL)
52 return false;
54 return instance->GetAllowHtmlPopupWindow ();
58 void *
59 plugin_instance_get_browser_host (PluginInstance *instance)
61 if (instance == NULL)
62 return NULL;
64 return instance->GetBrowserHost ();
68 bool
69 plugin_instance_get_enable_html_access (PluginInstance *instance)
71 if (instance == NULL)
72 return false;
74 return instance->GetEnableHtmlAccess ();
78 const char *
79 plugin_instance_get_init_params (PluginInstance *instance)
81 if (instance == NULL)
82 return NULL;
84 return instance->GetInitParams ();
88 const char *
89 plugin_instance_get_source (PluginInstance *instance)
91 if (instance == NULL)
92 return NULL;
94 return instance->GetSource ();
98 const char *
99 plugin_instance_get_source_location (PluginInstance *instance)
101 if (instance == NULL)
102 return NULL;
104 return instance->GetSourceLocation ();
108 const char *
109 plugin_instance_get_source_location_original (PluginInstance *instance)
111 if (instance == NULL)
112 return NULL;
114 return instance->GetSourceLocationOriginal ();
118 const char *
119 plugin_instance_get_source_original (PluginInstance *instance)
121 if (instance == NULL)
122 return NULL;
124 return instance->GetSourceOriginal ();
128 Surface *
129 plugin_instance_get_surface (PluginInstance *instance)
131 if (instance == NULL)
132 return NULL;
134 return instance->GetSurface ();
138 bool
139 plugin_instance_get_windowless (PluginInstance *instance)
141 if (instance == NULL)
142 return false;
144 return instance->GetWindowless ();
148 void
149 plugin_instance_report_exception (PluginInstance *instance, char *msg, char *details, char* *stack_trace, int num_frames)
151 if (instance == NULL)
152 return;
154 instance->ReportException (msg, details, stack_trace, num_frames);