Creating a dump outlet

Oct 4, 2012 at 2:00pm

Creating a dump outlet

Dear Developers,

is there a standard way to create a dump outlet? I mean, the outlet which will automatically respond to queries in the format ‘get+attribute_name’? I found in the SDK that I’m supposed to create this outlet with

object_obex_store(x, _sym_dumpout, (t_object*) outlet_new(x, NULL));

which actually creates the outlet, but it will not respond to my ‘get’ messages. My object has two attributes at the moment, one has a custom getter, the other has a default one. Neither of them can be queried, though.

What am I missing?

Thanks,
Ádám

#64614
Oct 4, 2012 at 2:08pm

Hi,

You need that too :

...
class_addmethod(c, (method)object_obex_dumpout, "dumpout", A_CANT,  0);
...
#233118
Oct 4, 2012 at 2:33pm

Hi,

thank you a lot!!!

Thanks,
Ádám

#233119

You must be logged in to reply to this topic.