public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* guile-gobject problem
@ 2003-08-11 20:30 Andreas Rottmann
  2003-08-12 14:49 ` guile-gobject problem [solved], g-wrap Andreas Rottmann
  2003-08-15 13:19 ` guile-gobject problem Andy Wingo
  0 siblings, 2 replies; 7+ messages in thread
From: Andreas Rottmann @ 2003-08-11 20:30 UTC (permalink / raw)
  To: guile-gtk

Hi!

Trying to use guile-gobject to create bindings for a library of mine,
I always get C compiler errors, since there is a mapping generated
from c-type none to <none>, which causes the return type type in the
wrapper to be declared of type 'none'.

So I have in the log file:

,----
| Opaque types in the gw-dstw wrapset: c-name scm-name
|  
| DSTWService* <dstwservice*>
| gboolean <gboolean>
| GType <gtype>
| char* <char*>
| none <none>
| gunichar* <gunichar*>
| ...
`----

Which leads to C code like this:

,----
| static char * gw__tmp246_dstw_servicetype_add_namestr = "dstw-servicetype-add";
| static SCM gw__tmp245_dstw_servicetype_add_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
|   SCM gw__scm_result = SCM_UNSPECIFIED;
|   enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
|   SCM gw__error_data = SCM_UNSPECIFIED;
|   unsigned int gw__arg_pos = 0;
|   const char *gw__error_misc_msg = NULL;
| none gw__c_result;
| ...
`----

My spec file:

,----
| (define-module (distwork server gw-dstw-spec)
|   :use-module (g-wrap)
|   :use-module (gnome gobject gw-glib-spec)
|   :use-module (gnome gobject defs-support)
|   :use-module (gnome gobject gw-spec-utils))
| 
| (let ((ws (gw:new-wrapset "gw-dstw")))
|   
|   (gw:wrapset-set-guile-module! ws '(distwork server gw-dstw))
|   
|   (gw:wrapset-add-cs-declarations!
|    ws
|    (lambda (wrapset client-wrapset)
|      (if (eq? client-wrapset wrapset)
|          '()
|          (list "#include <libdstw/service.h>\n"))))
| 
|   (load-defs ws "distwork/defs/dstw.defs")
| 
|   ws)
`----

Hope somebody has a hint for me :-/

Thanks, An *frustrated* dy
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

This reality is really just a fucked-up dream -- Papa Roach

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-08-15 13:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 20:30 guile-gobject problem Andreas Rottmann
2003-08-12 14:49 ` guile-gobject problem [solved], g-wrap Andreas Rottmann
2003-08-12 15:29   ` Greg Troxel
2003-08-12 16:31     ` Andreas Rottmann
2003-08-12 17:00       ` Rob Browning
2003-08-15 13:19 ` guile-gobject problem Andy Wingo
2003-08-15 13:58   ` Andreas Rottmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).