From: Andreas Rottmann <a.rottmann@gmx.at>
To: guile-gtk@sources.redhat.com
Subject: guile-gobject problem
Date: Mon, 11 Aug 2003 20:30:00 -0000 [thread overview]
Message-ID: <87llu0vsx8.fsf@alice.rotty.yi.org> (raw)
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
next reply other threads:[~2003-08-11 20:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 20:30 Andreas Rottmann [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87llu0vsx8.fsf@alice.rotty.yi.org \
--to=a.rottmann@gmx.at \
--cc=guile-gtk@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).