tag:blogger.com,1999:blog-568131786379599533.post3608989763731841431..comments2023-03-28T06:37:56.520-07:00Comments on Everaldo's Weblog: Mono Bindings in 5 minutesEveraldo Canutohttp://www.blogger.com/profile/01667076597769288042noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-568131786379599533.post-22944370021615518282013-04-01T04:34:17.572-07:002013-04-01T04:34:17.572-07:00Maik
Here is another database that is compatible ...Maik<br /><br />Here is another database that is compatible with Mono:<br />http://www.kellermansoftware.com/p-43-ninja-net-database-pro.aspx<br />darichkidhttps://www.blogger.com/profile/11427384867993481295noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-58229717062412155042011-04-23T07:56:09.702-07:002011-04-23T07:56:09.702-07:00Solved it by myself: The problem is the GC of Mono...Solved it by myself: The problem is the GC of Mono. If MONO_ENV_OPTIONS="--gc=sgen" is set code generation runs very fast. BTW there is a forked version of webkit-sharp by gburt which adds some new events and a forked version by myself which solves two compilation problems on newer mono version (2.10.1) and x86_64 arch.<br /><br />Thanks anyways.<br /><br />MaikUnknownhttps://www.blogger.com/profile/05277121911074806645noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-13523325743625978752011-04-22T03:58:36.481-07:002011-04-22T03:58:36.481-07:00Me again. I just want to paste the output which ha...Me again. I just want to paste the output which has been done:<br /><br /><br />$ make api<br />cp -rf /usr/include/webkit-1.0 .<br />PERLLIB=/share/perl5 \<br />PATH=/bin:$PATH \<br />/usr/bin/gapi2-parser webkit-sharp-sources.xml<br /><dir webkit-1.0/webkit><br />unsigned long long webkit_application_cache_get_maximum_size();<br />G_CONST_RETURN gchar* webkit_application_cache_get_database_directory_path (void);<br />const gchar* webkit_download_get_uri (WebKitDownload *download);<br />const gchar* webkit_download_get_suggested_filename (WebKitDownload *download);<br />const gchar* webkit_download_get_destination_uri (WebKitDownload *download);<br />G_CONST_RETURN gchar* webkit_icon_database_get_path (WebKitIconDatabase* database);<br />G_CONST_RETURN gchar * webkit_network_request_get_uri (WebKitNetworkRequest *request);<br />G_CONST_RETURN gchar * webkit_network_response_get_uri (WebKitNetworkResponse *response);<br />G_CONST_RETURN gchar* webkit_security_origin_get_protocol (WebKitSecurityOrigin* securityOrigin);<br />G_CONST_RETURN gchar* webkit_security_origin_get_host (WebKitSecurityOrigin* securityOrigin);<br />GType<br />G_CONST_RETURN gchar* webkit_web_database_get_name (WebKitWebDatabase* webDatabase);<br />G_CONST_RETURN gchar* webkit_web_database_get_display_name (WebKitWebDatabase* webDatabase);<br />G_CONST_RETURN gchar* webkit_web_database_get_filename (WebKitWebDatabase* webDatabase);<br />G_CONST_RETURN gchar* webkit_get_web_database_directory_path (void);<br />G_CONST_RETURN gchar * webkit_web_data_source_get_encoding (WebKitWebDataSource *data_source);<br />G_CONST_RETURN gchar * webkit_web_data_source_get_unreachable_uri (WebKitWebDataSource *data_source);<br />G_CONST_RETURN gchar * webkit_web_frame_get_name (WebKitWebFrame *frame);<br />G_CONST_RETURN gchar * webkit_web_frame_get_title (WebKitWebFrame *frame);<br />G_CONST_RETURN gchar * webkit_web_frame_get_uri (WebKitWebFrame *frame);<br />G_CONST_RETURN gchar * webkit_web_history_item_get_title (WebKitWebHistoryItem *web_history_item);<br />G_CONST_RETURN gchar * webkit_web_history_item_get_alternate_title (WebKitWebHistoryItem *web_history_item);<br />G_CONST_RETURN gchar * webkit_web_history_item_get_uri (WebKitWebHistoryItem *web_history_item);<br />G_CONST_RETURN gchar * webkit_web_history_item_get_original_uri (WebKitWebHistoryItem *web_history_item);<br />const gchar* webkit_web_inspector_get_inspected_uri(WebKitWebInspector* web_inspector);<br />const gchar* webkit_web_navigation_action_get_original_uri(WebKitWebNavigationAction* navigationAction);<br />G_CONST_RETURN gchar * webkit_web_navigation_action_get_target_frame(WebKitWebNavigationAction* navigationAction);<br />const char* webkit_web_plugin_get_name (WebKitWebPlugin*);<br />const char* webkit_web_plugin_get_description (WebKitWebPlugin*);<br />G_CONST_RETURN gchar * webkit_web_resource_get_uri (WebKitWebResource *web_resource);<br />G_CONST_RETURN gchar * webkit_web_resource_get_mime_type (WebKitWebResource *web_resource);<br />G_CONST_RETURN gchar * webkit_web_resource_get_encoding (WebKitWebResource *web_resource);<br />G_CONST_RETURN gchar * webkit_web_resource_get_frame_name (WebKitWebResource *web_resource);<br />G_CONST_RETURN gchar * webkit_web_settings_get_user_agent (WebKitWebSettings *web_settings);<br />G_CONST_RETURN gchar * webkit_web_view_get_title (WebKitWebView *webView);<br />G_CONST_RETURN gchar * webkit_web_view_get_uri (WebKitWebView *webView);<br /><br /><br /><br />There is something I don't understand: Why is the perlib directory pointing to /share instead of /usr/share? Is this only a false-positive?Unknownhttps://www.blogger.com/profile/05277121911074806645noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-44510759287411934562011-04-22T03:39:17.795-07:002011-04-22T03:39:17.795-07:00Hello Everaldo,
nice work, really. I've got t...Hello Everaldo,<br /><br />nice work, really. I've got the same problematic than Tehk described above using the webkit headers:<br /><br /><br />#define WEBKIT_MAJOR_VERSION (1)<br />#define WEBKIT_MINOR_VERSION (3)<br />#define WEBKIT_MICRO_VERSION (13)<br />#define WEBKIT_USER_AGENT_MAJOR_VERSION (534)<br />#define WEBKIT_USER_AGENT_MINOR_VERSION (26)<br />#define WEBKITGTK_API_VERSION (1.0)<br /><br /><br />The gapi_pp.pl runs now sine about 20 minutes:<br /><br />20 0 6816 1844 1420 R 99.7 0.1 12:59.17 gapi_pp.pl<br /><br />I just want to add DOM access to webkit-sharp. Is there any reason why it does not end using the 1.3.13 version which you already know about?<br /><br />Sorry for opening that topic 3 years later, but I like that code generation solution very sexy.<br /><br />Regards<br />MaikUnknownhttps://www.blogger.com/profile/05277121911074806645noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-35556247228842065472008-05-21T06:31:00.000-07:002008-05-21T06:31:00.000-07:00Dont forget to read the Customizations chapter in ...Dont forget to read the Customizations chapter in GAPI documentation, it will help to fix things without change generated xml:<BR/><BR/>http://www.mono-project.com/GAPI#Fixing_API_issues_and_Adding_CustomizationsEveraldo Canutohttps://www.blogger.com/profile/01667076597769288042noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-3265079127684698942008-05-20T22:32:00.000-07:002008-05-20T22:32:00.000-07:00Thanks for the time perspective. I solved that iss...Thanks for the time perspective. I solved that issue by removing headers one by one to find the offending one. Then I ran each sub component of gapi on the files and I found the offending code.<BR/><BR/>The only issue I have now is multiple 'cname doesn't follow the NamespaceType capitalization style:' outputs when generating the code, but I think I know what is going on there. I am going to dive into the api.raw xml tonight and solve that.<BR/><BR/>Other then that I really wish the code generation tool was a little more verbose(line numbers etc) so I could see where the offending code was.Tehkhttps://www.blogger.com/profile/02826607480731640751noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-33499671649160554442008-05-20T12:50:00.000-07:002008-05-20T12:50:00.000-07:00Humm, normally it take only few seconds to finish,...Humm, normally it take only few seconds to finish, probably something in your C headers is not right handled by GAPI.<BR/><BR/>Could you give me your C header (.h)? <BR/><BR/>(everaldo.canuto@gmail.com)<BR/><BR/>ThanksEveraldo Canutohttps://www.blogger.com/profile/01667076597769288042noreply@blogger.comtag:blogger.com,1999:blog-568131786379599533.post-27450622033067954462008-05-20T10:51:00.000-07:002008-05-20T10:51:00.000-07:00Great guide but i have a few questions. I am tryin...Great guide but i have a few questions. I am trying to generate some bindings but it seems to be taxing my system a bit.<BR/><BR/>For a decent size GTK C application how long would it take to make the API?<BR/><BR/>I ask this because my second core has been at 100% for about an hour now. Since it doesnt seem to output anything other then the initial "dir /path/to/included/libx" I am not sure if its some how stuck in some infinite loop, or frozen.<BR/><BR/><BR/>Does 'make api'Tehkhttps://www.blogger.com/profile/02826607480731640751noreply@blogger.com