Re: Wrapping variable argument functions
- From: José Alburquerque <jaalburquerque cox net>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Wrapping variable argument functions
- Date: Wed, 06 Feb 2008 14:51:39 -0500
Murray Cumming wrote:
On Wed, 2008-02-06 at 14:32 -0500, José Alburquerque wrote:
Hi. I have a general question about gmmproc: Can it wrap methods with
variable arguments? For example would _WRAP_METHOD(void method(int
field1, ...), c_function) work if the c_function accepts the same
variable argument list as the method? Thanks.
No. These are generally convenience functions for C, which usually
repeatedly call other functions that we do wrap. We don't generally
want ... arguments in C++ because they are not at all type-safe.
I'm looking at two functions in gstreamer (the GstCaps
gst_caps_set_simple and the GstStructure gst_structure_set functions)
that are giving me a bit of trouble. They're meant to set a series of
fields in the Caps and Structure. What would I do in a case like this?
Thanks.
-Jose
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]