27 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S);
29 #include <interface/interface.h>
30 #include <interface/message.h>
31 #include <interface/message_queue.h>
36 static int tolua_collect_fawkes__MessageQueue__MessageIterator (lua_State* tolua_S)
43 static int tolua_collect_fawkes__Message (lua_State* tolua_S)
50 static int tolua_collect_fawkes__MessageQueue (lua_State* tolua_S)
57 static int tolua_collect_size_t (lua_State* tolua_S)
59 size_t*
self = (
size_t*) tolua_tousertype(tolua_S,1,0);
67 static void tolua_reg_types (lua_State* tolua_S)
69 tolua_usertype(tolua_S,
"fawkes::MessageQueue::MessageIterator");
70 tolua_usertype(tolua_S,
"fawkes::Message");
71 tolua_usertype(tolua_S,
"fawkes::Interface");
72 tolua_usertype(tolua_S,
"fawkes::MessageQueue");
73 tolua_usertype(tolua_S,
"RefCount");
74 tolua_usertype(tolua_S,
"size_t");
78 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_oftype00
79 static int tolua_fawkesinterface_fawkes_Interface_oftype00(lua_State* tolua_S)
82 tolua_Error tolua_err;
84 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
85 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
86 !tolua_isnoobj(tolua_S,3,&tolua_err)
93 const char* interface_type = ((
const char*) tolua_tostring(tolua_S,2,0));
95 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'oftype'",NULL);
98 bool tolua_ret = (bool) self->oftype(interface_type);
99 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
103 #ifndef TOLUA_RELEASE
105 tolua_error(tolua_S,
"#ferror in function 'oftype'.",&tolua_err);
109 #endif //#ifndef TOLUA_DISABLE
112 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datachunk00
113 static int tolua_fawkesinterface_fawkes_Interface_datachunk00(lua_State* tolua_S)
115 #ifndef TOLUA_RELEASE
116 tolua_Error tolua_err;
118 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
119 !tolua_isnoobj(tolua_S,2,&tolua_err)
126 #ifndef TOLUA_RELEASE
127 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'",NULL);
130 const void* tolua_ret = (
const void*) self->datachunk();
131 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
135 #ifndef TOLUA_RELEASE
137 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
141 #endif //#ifndef TOLUA_DISABLE
144 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datasize00
145 static int tolua_fawkesinterface_fawkes_Interface_datasize00(lua_State* tolua_S)
147 #ifndef TOLUA_RELEASE
148 tolua_Error tolua_err;
150 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
151 !tolua_isnoobj(tolua_S,2,&tolua_err)
158 #ifndef TOLUA_RELEASE
159 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'",NULL);
162 unsigned int tolua_ret = (
unsigned int) self->datasize();
163 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
167 #ifndef TOLUA_RELEASE
169 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
173 #endif //#ifndef TOLUA_DISABLE
176 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_type00
177 static int tolua_fawkesinterface_fawkes_Interface_type00(lua_State* tolua_S)
179 #ifndef TOLUA_RELEASE
180 tolua_Error tolua_err;
182 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
183 !tolua_isnoobj(tolua_S,2,&tolua_err)
190 #ifndef TOLUA_RELEASE
191 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'",NULL);
194 const char* tolua_ret = (
const char*) self->type();
195 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
199 #ifndef TOLUA_RELEASE
201 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
205 #endif //#ifndef TOLUA_DISABLE
208 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_id00
209 static int tolua_fawkesinterface_fawkes_Interface_id00(lua_State* tolua_S)
211 #ifndef TOLUA_RELEASE
212 tolua_Error tolua_err;
214 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
215 !tolua_isnoobj(tolua_S,2,&tolua_err)
222 #ifndef TOLUA_RELEASE
223 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
226 const char* tolua_ret = (
const char*) self->id();
227 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
231 #ifndef TOLUA_RELEASE
233 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
237 #endif //#ifndef TOLUA_DISABLE
240 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_uid00
241 static int tolua_fawkesinterface_fawkes_Interface_uid00(lua_State* tolua_S)
243 #ifndef TOLUA_RELEASE
244 tolua_Error tolua_err;
246 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
247 !tolua_isnoobj(tolua_S,2,&tolua_err)
254 #ifndef TOLUA_RELEASE
255 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'uid'",NULL);
258 const char* tolua_ret = (
const char*) self->uid();
259 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
263 #ifndef TOLUA_RELEASE
265 tolua_error(tolua_S,
"#ferror in function 'uid'.",&tolua_err);
269 #endif //#ifndef TOLUA_DISABLE
272 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_serial00
273 static int tolua_fawkesinterface_fawkes_Interface_serial00(lua_State* tolua_S)
275 #ifndef TOLUA_RELEASE
276 tolua_Error tolua_err;
278 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
279 !tolua_isnoobj(tolua_S,2,&tolua_err)
286 #ifndef TOLUA_RELEASE
287 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'serial'",NULL);
290 unsigned int tolua_ret = (
unsigned int) self->serial();
291 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
295 #ifndef TOLUA_RELEASE
297 tolua_error(tolua_S,
"#ferror in function 'serial'.",&tolua_err);
301 #endif //#ifndef TOLUA_DISABLE
304 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_mem_serial00
305 static int tolua_fawkesinterface_fawkes_Interface_mem_serial00(lua_State* tolua_S)
307 #ifndef TOLUA_RELEASE
308 tolua_Error tolua_err;
310 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
311 !tolua_isnoobj(tolua_S,2,&tolua_err)
318 #ifndef TOLUA_RELEASE
319 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'mem_serial'",NULL);
322 unsigned int tolua_ret = (
unsigned int) self->mem_serial();
323 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
327 #ifndef TOLUA_RELEASE
329 tolua_error(tolua_S,
"#ferror in function 'mem_serial'.",&tolua_err);
333 #endif //#ifndef TOLUA_DISABLE
336 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface__eq00
337 static int tolua_fawkesinterface_fawkes_Interface__eq00(lua_State* tolua_S)
339 #ifndef TOLUA_RELEASE
340 tolua_Error tolua_err;
342 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
343 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Interface",0,&tolua_err)) ||
344 !tolua_isnoobj(tolua_S,3,&tolua_err)
352 #ifndef TOLUA_RELEASE
353 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='",NULL);
356 bool tolua_ret = (bool) self->operator==(*comp);
357 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
361 #ifndef TOLUA_RELEASE
363 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
367 #endif //#ifndef TOLUA_DISABLE
370 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash00
371 static int tolua_fawkesinterface_fawkes_Interface_hash00(lua_State* tolua_S)
373 #ifndef TOLUA_RELEASE
374 tolua_Error tolua_err;
376 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
377 !tolua_isnoobj(tolua_S,2,&tolua_err)
384 #ifndef TOLUA_RELEASE
385 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash'",NULL);
388 unsigned const char* tolua_ret = (
unsigned const char*) self->hash();
389 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
393 #ifndef TOLUA_RELEASE
395 tolua_error(tolua_S,
"#ferror in function 'hash'.",&tolua_err);
399 #endif //#ifndef TOLUA_DISABLE
402 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_size00
403 static int tolua_fawkesinterface_fawkes_Interface_hash_size00(lua_State* tolua_S)
405 #ifndef TOLUA_RELEASE
406 tolua_Error tolua_err;
408 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
409 !tolua_isnoobj(tolua_S,2,&tolua_err)
416 #ifndef TOLUA_RELEASE
417 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_size'",NULL);
420 size_t tolua_ret = (size_t) self->hash_size();
423 void* tolua_obj = Mtolua_new((
size_t)(tolua_ret));
424 tolua_pushusertype(tolua_S,tolua_obj,
"size_t");
425 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
427 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(
size_t));
428 tolua_pushusertype(tolua_S,tolua_obj,
"size_t");
429 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
435 #ifndef TOLUA_RELEASE
437 tolua_error(tolua_S,
"#ferror in function 'hash_size'.",&tolua_err);
441 #endif //#ifndef TOLUA_DISABLE
444 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_printable00
445 static int tolua_fawkesinterface_fawkes_Interface_hash_printable00(lua_State* tolua_S)
447 #ifndef TOLUA_RELEASE
448 tolua_Error tolua_err;
450 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
451 !tolua_isnoobj(tolua_S,2,&tolua_err)
458 #ifndef TOLUA_RELEASE
459 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_printable'",NULL);
462 const char* tolua_ret = (
const char*) self->hash_printable();
463 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
467 #ifndef TOLUA_RELEASE
469 tolua_error(tolua_S,
"#ferror in function 'hash_printable'.",&tolua_err);
473 #endif //#ifndef TOLUA_DISABLE
476 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_is_writer00
477 static int tolua_fawkesinterface_fawkes_Interface_is_writer00(lua_State* tolua_S)
479 #ifndef TOLUA_RELEASE
480 tolua_Error tolua_err;
482 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
483 !tolua_isnoobj(tolua_S,2,&tolua_err)
490 #ifndef TOLUA_RELEASE
491 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_writer'",NULL);
494 bool tolua_ret = (bool) self->is_writer();
495 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
499 #ifndef TOLUA_RELEASE
501 tolua_error(tolua_S,
"#ferror in function 'is_writer'.",&tolua_err);
505 #endif //#ifndef TOLUA_DISABLE
508 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_from_chunk00
509 static int tolua_fawkesinterface_fawkes_Interface_set_from_chunk00(lua_State* tolua_S)
511 #ifndef TOLUA_RELEASE
512 tolua_Error tolua_err;
514 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
515 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
516 !tolua_isnoobj(tolua_S,3,&tolua_err)
523 void* chunk = ((
void*) tolua_touserdata(tolua_S,2,0));
524 #ifndef TOLUA_RELEASE
525 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_from_chunk'",NULL);
528 self->set_from_chunk(chunk);
532 #ifndef TOLUA_RELEASE
534 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
538 #endif //#ifndef TOLUA_DISABLE
541 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_create_message00
542 static int tolua_fawkesinterface_fawkes_Interface_create_message00(lua_State* tolua_S)
544 #ifndef TOLUA_RELEASE
545 tolua_Error tolua_err;
547 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
548 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
549 !tolua_isnoobj(tolua_S,3,&tolua_err)
556 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
557 #ifndef TOLUA_RELEASE
558 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'create_message'",NULL);
562 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
566 #ifndef TOLUA_RELEASE
568 tolua_error(tolua_S,
"#ferror in function 'create_message'.",&tolua_err);
572 #endif //#ifndef TOLUA_DISABLE
575 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_read00
576 static int tolua_fawkesinterface_fawkes_Interface_read00(lua_State* tolua_S)
578 #ifndef TOLUA_RELEASE
579 tolua_Error tolua_err;
581 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
582 !tolua_isnoobj(tolua_S,2,&tolua_err)
589 #ifndef TOLUA_RELEASE
590 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'read'",NULL);
597 #ifndef TOLUA_RELEASE
599 tolua_error(tolua_S,
"#ferror in function 'read'.",&tolua_err);
603 #endif //#ifndef TOLUA_DISABLE
606 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_write00
607 static int tolua_fawkesinterface_fawkes_Interface_write00(lua_State* tolua_S)
609 #ifndef TOLUA_RELEASE
610 tolua_Error tolua_err;
612 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
613 !tolua_isnoobj(tolua_S,2,&tolua_err)
620 #ifndef TOLUA_RELEASE
621 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'write'",NULL);
628 #ifndef TOLUA_RELEASE
630 tolua_error(tolua_S,
"#ferror in function 'write'.",&tolua_err);
634 #endif //#ifndef TOLUA_DISABLE
637 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_has_writer00
638 static int tolua_fawkesinterface_fawkes_Interface_has_writer00(lua_State* tolua_S)
640 #ifndef TOLUA_RELEASE
641 tolua_Error tolua_err;
643 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
644 !tolua_isnoobj(tolua_S,2,&tolua_err)
651 #ifndef TOLUA_RELEASE
652 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'has_writer'",NULL);
655 bool tolua_ret = (bool) self->has_writer();
656 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
660 #ifndef TOLUA_RELEASE
662 tolua_error(tolua_S,
"#ferror in function 'has_writer'.",&tolua_err);
666 #endif //#ifndef TOLUA_DISABLE
669 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_num_readers00
670 static int tolua_fawkesinterface_fawkes_Interface_num_readers00(lua_State* tolua_S)
672 #ifndef TOLUA_RELEASE
673 tolua_Error tolua_err;
675 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
676 !tolua_isnoobj(tolua_S,2,&tolua_err)
683 #ifndef TOLUA_RELEASE
684 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'num_readers'",NULL);
687 unsigned int tolua_ret = (
unsigned int) self->num_readers();
688 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
692 #ifndef TOLUA_RELEASE
694 tolua_error(tolua_S,
"#ferror in function 'num_readers'.",&tolua_err);
698 #endif //#ifndef TOLUA_DISABLE
701 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00
702 static int tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00(lua_State* tolua_S)
704 #ifndef TOLUA_RELEASE
705 tolua_Error tolua_err;
707 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
708 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
709 !tolua_isnoobj(tolua_S,3,&tolua_err)
717 #ifndef TOLUA_RELEASE
718 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_enqueue_copy'",NULL);
721 unsigned int tolua_ret = (
unsigned int) self->msgq_enqueue_copy(message);
722 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
726 #ifndef TOLUA_RELEASE
728 tolua_error(tolua_S,
"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
732 #endif //#ifndef TOLUA_DISABLE
735 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove00
736 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove00(lua_State* tolua_S)
738 #ifndef TOLUA_RELEASE
739 tolua_Error tolua_err;
741 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
742 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
743 !tolua_isnoobj(tolua_S,3,&tolua_err)
751 #ifndef TOLUA_RELEASE
752 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'",NULL);
755 self->msgq_remove(message);
759 #ifndef TOLUA_RELEASE
761 tolua_error(tolua_S,
"#ferror in function 'msgq_remove'.",&tolua_err);
765 #endif //#ifndef TOLUA_DISABLE
768 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove01
769 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove01(lua_State* tolua_S)
771 tolua_Error tolua_err;
773 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
774 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
775 !tolua_isnoobj(tolua_S,3,&tolua_err)
781 unsigned int message_id = ((
unsigned int) tolua_tonumber(tolua_S,2,0));
782 #ifndef TOLUA_RELEASE
783 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'",NULL);
786 self->msgq_remove(message_id);
791 return tolua_fawkesinterface_fawkes_Interface_msgq_remove00(tolua_S);
793 #endif //#ifndef TOLUA_DISABLE
796 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_size00
797 static int tolua_fawkesinterface_fawkes_Interface_msgq_size00(lua_State* tolua_S)
799 #ifndef TOLUA_RELEASE
800 tolua_Error tolua_err;
802 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
803 !tolua_isnoobj(tolua_S,2,&tolua_err)
810 #ifndef TOLUA_RELEASE
811 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_size'",NULL);
814 unsigned int tolua_ret = (
unsigned int) self->msgq_size();
815 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
819 #ifndef TOLUA_RELEASE
821 tolua_error(tolua_S,
"#ferror in function 'msgq_size'.",&tolua_err);
825 #endif //#ifndef TOLUA_DISABLE
828 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_flush00
829 static int tolua_fawkesinterface_fawkes_Interface_msgq_flush00(lua_State* tolua_S)
831 #ifndef TOLUA_RELEASE
832 tolua_Error tolua_err;
834 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
835 !tolua_isnoobj(tolua_S,2,&tolua_err)
842 #ifndef TOLUA_RELEASE
843 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_flush'",NULL);
850 #ifndef TOLUA_RELEASE
852 tolua_error(tolua_S,
"#ferror in function 'msgq_flush'.",&tolua_err);
856 #endif //#ifndef TOLUA_DISABLE
859 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_lock00
860 static int tolua_fawkesinterface_fawkes_Interface_msgq_lock00(lua_State* tolua_S)
862 #ifndef TOLUA_RELEASE
863 tolua_Error tolua_err;
865 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
866 !tolua_isnoobj(tolua_S,2,&tolua_err)
873 #ifndef TOLUA_RELEASE
874 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_lock'",NULL);
881 #ifndef TOLUA_RELEASE
883 tolua_error(tolua_S,
"#ferror in function 'msgq_lock'.",&tolua_err);
887 #endif //#ifndef TOLUA_DISABLE
890 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00
891 static int tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00(lua_State* tolua_S)
893 #ifndef TOLUA_RELEASE
894 tolua_Error tolua_err;
896 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
897 !tolua_isnoobj(tolua_S,2,&tolua_err)
904 #ifndef TOLUA_RELEASE
905 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_try_lock'",NULL);
908 bool tolua_ret = (bool) self->msgq_try_lock();
909 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
913 #ifndef TOLUA_RELEASE
915 tolua_error(tolua_S,
"#ferror in function 'msgq_try_lock'.",&tolua_err);
919 #endif //#ifndef TOLUA_DISABLE
922 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_unlock00
923 static int tolua_fawkesinterface_fawkes_Interface_msgq_unlock00(lua_State* tolua_S)
925 #ifndef TOLUA_RELEASE
926 tolua_Error tolua_err;
928 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
929 !tolua_isnoobj(tolua_S,2,&tolua_err)
936 #ifndef TOLUA_RELEASE
937 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_unlock'",NULL);
944 #ifndef TOLUA_RELEASE
946 tolua_error(tolua_S,
"#ferror in function 'msgq_unlock'.",&tolua_err);
950 #endif //#ifndef TOLUA_DISABLE
953 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_pop00
954 static int tolua_fawkesinterface_fawkes_Interface_msgq_pop00(lua_State* tolua_S)
956 #ifndef TOLUA_RELEASE
957 tolua_Error tolua_err;
959 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
960 !tolua_isnoobj(tolua_S,2,&tolua_err)
967 #ifndef TOLUA_RELEASE
968 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_pop'",NULL);
975 #ifndef TOLUA_RELEASE
977 tolua_error(tolua_S,
"#ferror in function 'msgq_pop'.",&tolua_err);
981 #endif //#ifndef TOLUA_DISABLE
984 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_first00
985 static int tolua_fawkesinterface_fawkes_Interface_msgq_first00(lua_State* tolua_S)
987 #ifndef TOLUA_RELEASE
988 tolua_Error tolua_err;
990 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
991 !tolua_isnoobj(tolua_S,2,&tolua_err)
998 #ifndef TOLUA_RELEASE
999 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_first'",NULL);
1003 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1007 #ifndef TOLUA_RELEASE
1009 tolua_error(tolua_S,
"#ferror in function 'msgq_first'.",&tolua_err);
1013 #endif //#ifndef TOLUA_DISABLE
1016 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_empty00
1017 static int tolua_fawkesinterface_fawkes_Interface_msgq_empty00(lua_State* tolua_S)
1019 #ifndef TOLUA_RELEASE
1020 tolua_Error tolua_err;
1022 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1023 !tolua_isnoobj(tolua_S,2,&tolua_err)
1030 #ifndef TOLUA_RELEASE
1031 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_empty'",NULL);
1034 bool tolua_ret = (bool) self->msgq_empty();
1035 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1039 #ifndef TOLUA_RELEASE
1041 tolua_error(tolua_S,
"#ferror in function 'msgq_empty'.",&tolua_err);
1045 #endif //#ifndef TOLUA_DISABLE
1048 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00
1049 static int tolua_fawkesinterface_fawkes_Message_new00(lua_State* tolua_S)
1051 #ifndef TOLUA_RELEASE
1052 tolua_Error tolua_err;
1054 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1055 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1056 !tolua_isnoobj(tolua_S,3,&tolua_err)
1062 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1065 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1069 #ifndef TOLUA_RELEASE
1071 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1075 #endif //#ifndef TOLUA_DISABLE
1078 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00_local
1079 static int tolua_fawkesinterface_fawkes_Message_new00_local(lua_State* tolua_S)
1081 #ifndef TOLUA_RELEASE
1082 tolua_Error tolua_err;
1084 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1085 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1086 !tolua_isnoobj(tolua_S,3,&tolua_err)
1092 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1095 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1096 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1100 #ifndef TOLUA_RELEASE
1102 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1106 #endif //#ifndef TOLUA_DISABLE
1109 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01
1110 static int tolua_fawkesinterface_fawkes_Message_new01(lua_State* tolua_S)
1112 tolua_Error tolua_err;
1114 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1115 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1116 !tolua_isnoobj(tolua_S,3,&tolua_err)
1124 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1129 return tolua_fawkesinterface_fawkes_Message_new00(tolua_S);
1131 #endif //#ifndef TOLUA_DISABLE
1134 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01_local
1135 static int tolua_fawkesinterface_fawkes_Message_new01_local(lua_State* tolua_S)
1137 tolua_Error tolua_err;
1139 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1140 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1141 !tolua_isnoobj(tolua_S,3,&tolua_err)
1149 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1150 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1155 return tolua_fawkesinterface_fawkes_Message_new00_local(tolua_S);
1157 #endif //#ifndef TOLUA_DISABLE
1160 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02
1161 static int tolua_fawkesinterface_fawkes_Message_new02(lua_State* tolua_S)
1163 tolua_Error tolua_err;
1165 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1166 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err)) ||
1167 !tolua_isnoobj(tolua_S,3,&tolua_err)
1175 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1180 return tolua_fawkesinterface_fawkes_Message_new01(tolua_S);
1182 #endif //#ifndef TOLUA_DISABLE
1185 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02_local
1186 static int tolua_fawkesinterface_fawkes_Message_new02_local(lua_State* tolua_S)
1188 tolua_Error tolua_err;
1190 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1191 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err)) ||
1192 !tolua_isnoobj(tolua_S,3,&tolua_err)
1200 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1201 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1206 return tolua_fawkesinterface_fawkes_Message_new01_local(tolua_S);
1208 #endif //#ifndef TOLUA_DISABLE
1211 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_id00
1212 static int tolua_fawkesinterface_fawkes_Message_sender_id00(lua_State* tolua_S)
1214 #ifndef TOLUA_RELEASE
1215 tolua_Error tolua_err;
1217 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1218 !tolua_isnoobj(tolua_S,2,&tolua_err)
1225 #ifndef TOLUA_RELEASE
1226 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_id'",NULL);
1229 unsigned int tolua_ret = (
unsigned int) self->
sender_id();
1230 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1234 #ifndef TOLUA_RELEASE
1236 tolua_error(tolua_S,
"#ferror in function 'sender_id'.",&tolua_err);
1240 #endif //#ifndef TOLUA_DISABLE
1243 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_thread_name00
1244 static int tolua_fawkesinterface_fawkes_Message_sender_thread_name00(lua_State* tolua_S)
1246 #ifndef TOLUA_RELEASE
1247 tolua_Error tolua_err;
1249 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1250 !tolua_isnoobj(tolua_S,2,&tolua_err)
1257 #ifndef TOLUA_RELEASE
1258 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_thread_name'",NULL);
1262 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1266 #ifndef TOLUA_RELEASE
1268 tolua_error(tolua_S,
"#ferror in function 'sender_thread_name'.",&tolua_err);
1272 #endif //#ifndef TOLUA_DISABLE
1275 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_interface00
1276 static int tolua_fawkesinterface_fawkes_Message_interface00(lua_State* tolua_S)
1278 #ifndef TOLUA_RELEASE
1279 tolua_Error tolua_err;
1281 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1282 !tolua_isnoobj(tolua_S,2,&tolua_err)
1289 #ifndef TOLUA_RELEASE
1290 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'interface'",NULL);
1294 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Interface");
1298 #ifndef TOLUA_RELEASE
1300 tolua_error(tolua_S,
"#ferror in function 'interface'.",&tolua_err);
1304 #endif //#ifndef TOLUA_DISABLE
1307 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_type00
1308 static int tolua_fawkesinterface_fawkes_Message_type00(lua_State* tolua_S)
1310 #ifndef TOLUA_RELEASE
1311 tolua_Error tolua_err;
1313 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1314 !tolua_isnoobj(tolua_S,2,&tolua_err)
1321 #ifndef TOLUA_RELEASE
1322 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'",NULL);
1325 const char* tolua_ret = (
const char*) self->
type();
1326 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1330 #ifndef TOLUA_RELEASE
1332 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
1336 #endif //#ifndef TOLUA_DISABLE
1339 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datachunk00
1340 static int tolua_fawkesinterface_fawkes_Message_datachunk00(lua_State* tolua_S)
1342 #ifndef TOLUA_RELEASE
1343 tolua_Error tolua_err;
1345 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1346 !tolua_isnoobj(tolua_S,2,&tolua_err)
1353 #ifndef TOLUA_RELEASE
1354 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'",NULL);
1357 const void* tolua_ret = (
const void*) self->
datachunk();
1358 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
1362 #ifndef TOLUA_RELEASE
1364 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
1368 #endif //#ifndef TOLUA_DISABLE
1371 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datasize00
1372 static int tolua_fawkesinterface_fawkes_Message_datasize00(lua_State* tolua_S)
1374 #ifndef TOLUA_RELEASE
1375 tolua_Error tolua_err;
1377 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1378 !tolua_isnoobj(tolua_S,2,&tolua_err)
1385 #ifndef TOLUA_RELEASE
1386 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'",NULL);
1389 unsigned int tolua_ret = (
unsigned int) self->
datasize();
1390 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1394 #ifndef TOLUA_RELEASE
1396 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
1400 #endif //#ifndef TOLUA_DISABLE
1403 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_set_from_chunk00
1404 static int tolua_fawkesinterface_fawkes_Message_set_from_chunk00(lua_State* tolua_S)
1406 #ifndef TOLUA_RELEASE
1407 tolua_Error tolua_err;
1409 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1410 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
1411 !tolua_isnoobj(tolua_S,3,&tolua_err)
1418 const void* chunk = ((
const void*) tolua_touserdata(tolua_S,2,0));
1419 #ifndef TOLUA_RELEASE
1420 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_from_chunk'",NULL);
1423 self->set_from_chunk(chunk);
1427 #ifndef TOLUA_RELEASE
1429 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
1433 #endif //#ifndef TOLUA_DISABLE
1436 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_ref00
1437 static int tolua_fawkesinterface_fawkes_Message_ref00(lua_State* tolua_S)
1439 #ifndef TOLUA_RELEASE
1440 tolua_Error tolua_err;
1442 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1443 !tolua_isnoobj(tolua_S,2,&tolua_err)
1450 #ifndef TOLUA_RELEASE
1451 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'ref'",NULL);
1458 #ifndef TOLUA_RELEASE
1460 tolua_error(tolua_S,
"#ferror in function 'ref'.",&tolua_err);
1464 #endif //#ifndef TOLUA_DISABLE
1467 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_unref00
1468 static int tolua_fawkesinterface_fawkes_Message_unref00(lua_State* tolua_S)
1470 #ifndef TOLUA_RELEASE
1471 tolua_Error tolua_err;
1473 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1474 !tolua_isnoobj(tolua_S,2,&tolua_err)
1481 #ifndef TOLUA_RELEASE
1482 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unref'",NULL);
1489 #ifndef TOLUA_RELEASE
1491 tolua_error(tolua_S,
"#ferror in function 'unref'.",&tolua_err);
1495 #endif //#ifndef TOLUA_DISABLE
1498 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_refcount00
1499 static int tolua_fawkesinterface_fawkes_Message_refcount00(lua_State* tolua_S)
1501 #ifndef TOLUA_RELEASE
1502 tolua_Error tolua_err;
1504 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1505 !tolua_isnoobj(tolua_S,2,&tolua_err)
1512 #ifndef TOLUA_RELEASE
1513 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'refcount'",NULL);
1516 unsigned int tolua_ret = (
unsigned int) self->
refcount();
1517 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1521 #ifndef TOLUA_RELEASE
1523 tolua_error(tolua_S,
"#ferror in function 'refcount'.",&tolua_err);
1527 #endif //#ifndef TOLUA_DISABLE
1530 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00
1531 static int tolua_fawkesinterface_fawkes_MessageQueue_new00(lua_State* tolua_S)
1533 #ifndef TOLUA_RELEASE
1534 tolua_Error tolua_err;
1536 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1537 !tolua_isnoobj(tolua_S,2,&tolua_err)
1545 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
1549 #ifndef TOLUA_RELEASE
1551 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1555 #endif //#ifndef TOLUA_DISABLE
1558 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00_local
1559 static int tolua_fawkesinterface_fawkes_MessageQueue_new00_local(lua_State* tolua_S)
1561 #ifndef TOLUA_RELEASE
1562 tolua_Error tolua_err;
1564 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1565 !tolua_isnoobj(tolua_S,2,&tolua_err)
1573 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
1574 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1578 #ifndef TOLUA_RELEASE
1580 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1584 #endif //#ifndef TOLUA_DISABLE
1587 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_delete00
1588 static int tolua_fawkesinterface_fawkes_MessageQueue_delete00(lua_State* tolua_S)
1590 #ifndef TOLUA_RELEASE
1591 tolua_Error tolua_err;
1593 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1594 !tolua_isnoobj(tolua_S,2,&tolua_err)
1601 #ifndef TOLUA_RELEASE
1602 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'delete'",NULL);
1604 Mtolua_delete(
self);
1607 #ifndef TOLUA_RELEASE
1609 tolua_error(tolua_S,
"#ferror in function 'delete'.",&tolua_err);
1613 #endif //#ifndef TOLUA_DISABLE
1616 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00
1617 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(lua_State* tolua_S)
1619 #ifndef TOLUA_RELEASE
1620 tolua_Error tolua_err;
1622 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1623 !tolua_isnoobj(tolua_S,2,&tolua_err)
1631 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1635 #ifndef TOLUA_RELEASE
1637 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1641 #endif //#ifndef TOLUA_DISABLE
1644 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local
1645 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(lua_State* tolua_S)
1647 #ifndef TOLUA_RELEASE
1648 tolua_Error tolua_err;
1650 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1651 !tolua_isnoobj(tolua_S,2,&tolua_err)
1659 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1660 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1664 #ifndef TOLUA_RELEASE
1666 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1670 #endif //#ifndef TOLUA_DISABLE
1673 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01
1674 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01(lua_State* tolua_S)
1676 tolua_Error tolua_err;
1678 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1679 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1680 !tolua_isnoobj(tolua_S,3,&tolua_err)
1688 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1693 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(tolua_S);
1695 #endif //#ifndef TOLUA_DISABLE
1698 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local
1699 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local(lua_State* tolua_S)
1701 tolua_Error tolua_err;
1703 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1704 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1705 !tolua_isnoobj(tolua_S,3,&tolua_err)
1713 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1714 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1719 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(tolua_S);
1721 #endif //#ifndef TOLUA_DISABLE
1724 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00
1725 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00(lua_State* tolua_S)
1727 #ifndef TOLUA_RELEASE
1728 tolua_Error tolua_err;
1730 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1731 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1732 !tolua_isnoobj(tolua_S,3,&tolua_err)
1739 unsigned int i = ((
unsigned int) tolua_tonumber(tolua_S,2,0));
1740 #ifndef TOLUA_RELEASE
1741 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator+'",NULL);
1745 tolua_pushusertype(tolua_S,(
void*)&tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1749 #ifndef TOLUA_RELEASE
1751 tolua_error(tolua_S,
"#ferror in function '.add'.",&tolua_err);
1755 #endif //#ifndef TOLUA_DISABLE
1758 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00
1759 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00(lua_State* tolua_S)
1761 #ifndef TOLUA_RELEASE
1762 tolua_Error tolua_err;
1764 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1765 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1766 !tolua_isnoobj(tolua_S,3,&tolua_err)
1774 #ifndef TOLUA_RELEASE
1775 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='",NULL);
1778 bool tolua_ret = (bool) self->operator==(*c);
1779 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1783 #ifndef TOLUA_RELEASE
1785 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
1789 #endif //#ifndef TOLUA_DISABLE
1792 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00
1793 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00(lua_State* tolua_S)
1795 #ifndef TOLUA_RELEASE
1796 tolua_Error tolua_err;
1798 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1799 !tolua_isnoobj(tolua_S,2,&tolua_err)
1806 #ifndef TOLUA_RELEASE
1807 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator*'",NULL);
1811 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1815 #ifndef TOLUA_RELEASE
1817 tolua_error(tolua_S,
"#ferror in function '.mul'.",&tolua_err);
1821 #endif //#ifndef TOLUA_DISABLE
1824 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00
1825 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00(lua_State* tolua_S)
1827 #ifndef TOLUA_RELEASE
1828 tolua_Error tolua_err;
1830 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1831 !tolua_isnoobj(tolua_S,2,&tolua_err)
1838 #ifndef TOLUA_RELEASE
1839 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
1842 unsigned int tolua_ret = (
unsigned int) self->
id();
1843 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1847 #ifndef TOLUA_RELEASE
1849 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
1853 #endif //#ifndef TOLUA_DISABLE
1856 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_append00
1857 static int tolua_fawkesinterface_fawkes_MessageQueue_append00(lua_State* tolua_S)
1859 #ifndef TOLUA_RELEASE
1860 tolua_Error tolua_err;
1862 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1863 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1864 !tolua_isnoobj(tolua_S,3,&tolua_err)
1872 #ifndef TOLUA_RELEASE
1873 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'append'",NULL);
1880 #ifndef TOLUA_RELEASE
1882 tolua_error(tolua_S,
"#ferror in function 'append'.",&tolua_err);
1886 #endif //#ifndef TOLUA_DISABLE
1889 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove00
1890 static int tolua_fawkesinterface_fawkes_MessageQueue_remove00(lua_State* tolua_S)
1892 #ifndef TOLUA_RELEASE
1893 tolua_Error tolua_err;
1895 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1896 !tolua_isusertype(tolua_S,2,
"const fawkes::Message",0,&tolua_err) ||
1897 !tolua_isnoobj(tolua_S,3,&tolua_err)
1905 #ifndef TOLUA_RELEASE
1906 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'",NULL);
1913 #ifndef TOLUA_RELEASE
1915 tolua_error(tolua_S,
"#ferror in function 'remove'.",&tolua_err);
1919 #endif //#ifndef TOLUA_DISABLE
1922 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove01
1923 static int tolua_fawkesinterface_fawkes_MessageQueue_remove01(lua_State* tolua_S)
1925 tolua_Error tolua_err;
1927 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1928 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1929 !tolua_isnoobj(tolua_S,3,&tolua_err)
1935 unsigned const int msg_id = ((
unsigned const int) tolua_tonumber(tolua_S,2,0));
1936 #ifndef TOLUA_RELEASE
1937 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'",NULL);
1940 self->remove(msg_id);
1945 return tolua_fawkesinterface_fawkes_MessageQueue_remove00(tolua_S);
1947 #endif //#ifndef TOLUA_DISABLE
1950 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_insert_after00
1951 static int tolua_fawkesinterface_fawkes_MessageQueue_insert_after00(lua_State* tolua_S)
1953 #ifndef TOLUA_RELEASE
1954 tolua_Error tolua_err;
1956 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1957 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1958 !tolua_isusertype(tolua_S,3,
"fawkes::Message",0,&tolua_err) ||
1959 !tolua_isnoobj(tolua_S,4,&tolua_err)
1968 #ifndef TOLUA_RELEASE
1969 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'insert_after'",NULL);
1972 self->insert_after(*it,msg);
1976 #ifndef TOLUA_RELEASE
1978 tolua_error(tolua_S,
"#ferror in function 'insert_after'.",&tolua_err);
1982 #endif //#ifndef TOLUA_DISABLE
1985 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_size00
1986 static int tolua_fawkesinterface_fawkes_MessageQueue_size00(lua_State* tolua_S)
1988 #ifndef TOLUA_RELEASE
1989 tolua_Error tolua_err;
1991 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
1992 !tolua_isnoobj(tolua_S,2,&tolua_err)
1999 #ifndef TOLUA_RELEASE
2000 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'size'",NULL);
2003 unsigned int tolua_ret = (
unsigned int) self->size();
2004 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2008 #ifndef TOLUA_RELEASE
2010 tolua_error(tolua_S,
"#ferror in function 'size'.",&tolua_err);
2014 #endif //#ifndef TOLUA_DISABLE
2017 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_flush00
2018 static int tolua_fawkesinterface_fawkes_MessageQueue_flush00(lua_State* tolua_S)
2020 #ifndef TOLUA_RELEASE
2021 tolua_Error tolua_err;
2023 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2024 !tolua_isnoobj(tolua_S,2,&tolua_err)
2031 #ifndef TOLUA_RELEASE
2032 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'flush'",NULL);
2039 #ifndef TOLUA_RELEASE
2041 tolua_error(tolua_S,
"#ferror in function 'flush'.",&tolua_err);
2045 #endif //#ifndef TOLUA_DISABLE
2048 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_empty00
2049 static int tolua_fawkesinterface_fawkes_MessageQueue_empty00(lua_State* tolua_S)
2051 #ifndef TOLUA_RELEASE
2052 tolua_Error tolua_err;
2054 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
2055 !tolua_isnoobj(tolua_S,2,&tolua_err)
2062 #ifndef TOLUA_RELEASE
2063 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'empty'",NULL);
2066 bool tolua_ret = (bool) self->empty();
2067 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2071 #ifndef TOLUA_RELEASE
2073 tolua_error(tolua_S,
"#ferror in function 'empty'.",&tolua_err);
2077 #endif //#ifndef TOLUA_DISABLE
2080 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_lock00
2081 static int tolua_fawkesinterface_fawkes_MessageQueue_lock00(lua_State* tolua_S)
2083 #ifndef TOLUA_RELEASE
2084 tolua_Error tolua_err;
2086 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2087 !tolua_isnoobj(tolua_S,2,&tolua_err)
2094 #ifndef TOLUA_RELEASE
2095 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'",NULL);
2102 #ifndef TOLUA_RELEASE
2104 tolua_error(tolua_S,
"#ferror in function 'lock'.",&tolua_err);
2108 #endif //#ifndef TOLUA_DISABLE
2111 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_try_lock00
2112 static int tolua_fawkesinterface_fawkes_MessageQueue_try_lock00(lua_State* tolua_S)
2114 #ifndef TOLUA_RELEASE
2115 tolua_Error tolua_err;
2117 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2118 !tolua_isnoobj(tolua_S,2,&tolua_err)
2125 #ifndef TOLUA_RELEASE
2126 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'try_lock'",NULL);
2129 bool tolua_ret = (bool) self->try_lock();
2130 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2134 #ifndef TOLUA_RELEASE
2136 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
2140 #endif //#ifndef TOLUA_DISABLE
2143 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_unlock00
2144 static int tolua_fawkesinterface_fawkes_MessageQueue_unlock00(lua_State* tolua_S)
2146 #ifndef TOLUA_RELEASE
2147 tolua_Error tolua_err;
2149 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2150 !tolua_isnoobj(tolua_S,2,&tolua_err)
2157 #ifndef TOLUA_RELEASE
2158 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'",NULL);
2165 #ifndef TOLUA_RELEASE
2167 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
2171 #endif //#ifndef TOLUA_DISABLE
2174 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_first00
2175 static int tolua_fawkesinterface_fawkes_MessageQueue_first00(lua_State* tolua_S)
2177 #ifndef TOLUA_RELEASE
2178 tolua_Error tolua_err;
2180 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2181 !tolua_isnoobj(tolua_S,2,&tolua_err)
2188 #ifndef TOLUA_RELEASE
2189 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'first'",NULL);
2193 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
2197 #ifndef TOLUA_RELEASE
2199 tolua_error(tolua_S,
"#ferror in function 'first'.",&tolua_err);
2203 #endif //#ifndef TOLUA_DISABLE
2206 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_pop00
2207 static int tolua_fawkesinterface_fawkes_MessageQueue_pop00(lua_State* tolua_S)
2209 #ifndef TOLUA_RELEASE
2210 tolua_Error tolua_err;
2212 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2213 !tolua_isnoobj(tolua_S,2,&tolua_err)
2220 #ifndef TOLUA_RELEASE
2221 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'pop'",NULL);
2228 #ifndef TOLUA_RELEASE
2230 tolua_error(tolua_S,
"#ferror in function 'pop'.",&tolua_err);
2234 #endif //#ifndef TOLUA_DISABLE
2237 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_begin00
2238 static int tolua_fawkesinterface_fawkes_MessageQueue_begin00(lua_State* tolua_S)
2240 #ifndef TOLUA_RELEASE
2241 tolua_Error tolua_err;
2243 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2244 !tolua_isnoobj(tolua_S,2,&tolua_err)
2251 #ifndef TOLUA_RELEASE
2252 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'begin'",NULL);
2259 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2260 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2263 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2264 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2270 #ifndef TOLUA_RELEASE
2272 tolua_error(tolua_S,
"#ferror in function 'begin'.",&tolua_err);
2276 #endif //#ifndef TOLUA_DISABLE
2279 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_end00
2280 static int tolua_fawkesinterface_fawkes_MessageQueue_end00(lua_State* tolua_S)
2282 #ifndef TOLUA_RELEASE
2283 tolua_Error tolua_err;
2285 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2286 !tolua_isnoobj(tolua_S,2,&tolua_err)
2293 #ifndef TOLUA_RELEASE
2294 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'end'",NULL);
2301 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2302 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2305 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2306 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2312 #ifndef TOLUA_RELEASE
2314 tolua_error(tolua_S,
"#ferror in function 'end'.",&tolua_err);
2318 #endif //#ifndef TOLUA_DISABLE
2321 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S)
2323 tolua_open(tolua_S);
2324 tolua_reg_types(tolua_S);
2325 tolua_module(tolua_S,NULL,0);
2326 tolua_beginmodule(tolua_S,NULL);
2327 tolua_module(tolua_S,
"fawkes",0);
2328 tolua_beginmodule(tolua_S,
"fawkes");
2329 tolua_cclass(tolua_S,
"Interface",
"fawkes::Interface",
"",NULL);
2330 tolua_beginmodule(tolua_S,
"Interface");
2331 tolua_function(tolua_S,
"oftype",tolua_fawkesinterface_fawkes_Interface_oftype00);
2332 tolua_function(tolua_S,
"datachunk",tolua_fawkesinterface_fawkes_Interface_datachunk00);
2333 tolua_function(tolua_S,
"datasize",tolua_fawkesinterface_fawkes_Interface_datasize00);
2334 tolua_function(tolua_S,
"type",tolua_fawkesinterface_fawkes_Interface_type00);
2335 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_Interface_id00);
2336 tolua_function(tolua_S,
"uid",tolua_fawkesinterface_fawkes_Interface_uid00);
2337 tolua_function(tolua_S,
"serial",tolua_fawkesinterface_fawkes_Interface_serial00);
2338 tolua_function(tolua_S,
"mem_serial",tolua_fawkesinterface_fawkes_Interface_mem_serial00);
2339 tolua_function(tolua_S,
".eq",tolua_fawkesinterface_fawkes_Interface__eq00);
2340 tolua_function(tolua_S,
"hash",tolua_fawkesinterface_fawkes_Interface_hash00);
2341 tolua_function(tolua_S,
"hash_size",tolua_fawkesinterface_fawkes_Interface_hash_size00);
2342 tolua_function(tolua_S,
"hash_printable",tolua_fawkesinterface_fawkes_Interface_hash_printable00);
2343 tolua_function(tolua_S,
"is_writer",tolua_fawkesinterface_fawkes_Interface_is_writer00);
2344 tolua_function(tolua_S,
"set_from_chunk",tolua_fawkesinterface_fawkes_Interface_set_from_chunk00);
2345 tolua_function(tolua_S,
"create_message",tolua_fawkesinterface_fawkes_Interface_create_message00);
2346 tolua_function(tolua_S,
"read",tolua_fawkesinterface_fawkes_Interface_read00);
2347 tolua_function(tolua_S,
"write",tolua_fawkesinterface_fawkes_Interface_write00);
2348 tolua_function(tolua_S,
"has_writer",tolua_fawkesinterface_fawkes_Interface_has_writer00);
2349 tolua_function(tolua_S,
"num_readers",tolua_fawkesinterface_fawkes_Interface_num_readers00);
2350 tolua_function(tolua_S,
"msgq_enqueue_copy",tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00);
2351 tolua_function(tolua_S,
"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove00);
2352 tolua_function(tolua_S,
"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove01);
2353 tolua_function(tolua_S,
"msgq_size",tolua_fawkesinterface_fawkes_Interface_msgq_size00);
2354 tolua_function(tolua_S,
"msgq_flush",tolua_fawkesinterface_fawkes_Interface_msgq_flush00);
2355 tolua_function(tolua_S,
"msgq_lock",tolua_fawkesinterface_fawkes_Interface_msgq_lock00);
2356 tolua_function(tolua_S,
"msgq_try_lock",tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00);
2357 tolua_function(tolua_S,
"msgq_unlock",tolua_fawkesinterface_fawkes_Interface_msgq_unlock00);
2358 tolua_function(tolua_S,
"msgq_pop",tolua_fawkesinterface_fawkes_Interface_msgq_pop00);
2359 tolua_function(tolua_S,
"msgq_first",tolua_fawkesinterface_fawkes_Interface_msgq_first00);
2360 tolua_function(tolua_S,
"msgq_empty",tolua_fawkesinterface_fawkes_Interface_msgq_empty00);
2361 tolua_endmodule(tolua_S);
2362 tolua_endmodule(tolua_S);
2363 tolua_module(tolua_S,
"fawkes",0);
2364 tolua_beginmodule(tolua_S,
"fawkes");
2366 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",tolua_collect_fawkes__Message);
2368 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",NULL);
2370 tolua_beginmodule(tolua_S,
"Message");
2371 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new00);
2372 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new00_local);
2373 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new00_local);
2374 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new01);
2375 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new01_local);
2376 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new01_local);
2377 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new02);
2378 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new02_local);
2379 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new02_local);
2380 tolua_function(tolua_S,
"sender_id",tolua_fawkesinterface_fawkes_Message_sender_id00);
2381 tolua_function(tolua_S,
"sender_thread_name",tolua_fawkesinterface_fawkes_Message_sender_thread_name00);
2382 tolua_function(tolua_S,
"interface",tolua_fawkesinterface_fawkes_Message_interface00);
2383 tolua_function(tolua_S,
"type",tolua_fawkesinterface_fawkes_Message_type00);
2384 tolua_function(tolua_S,
"datachunk",tolua_fawkesinterface_fawkes_Message_datachunk00);
2385 tolua_function(tolua_S,
"datasize",tolua_fawkesinterface_fawkes_Message_datasize00);
2386 tolua_function(tolua_S,
"set_from_chunk",tolua_fawkesinterface_fawkes_Message_set_from_chunk00);
2387 tolua_function(tolua_S,
"ref",tolua_fawkesinterface_fawkes_Message_ref00);
2388 tolua_function(tolua_S,
"unref",tolua_fawkesinterface_fawkes_Message_unref00);
2389 tolua_function(tolua_S,
"refcount",tolua_fawkesinterface_fawkes_Message_refcount00);
2390 tolua_endmodule(tolua_S);
2391 tolua_endmodule(tolua_S);
2392 tolua_module(tolua_S,
"fawkes",0);
2393 tolua_beginmodule(tolua_S,
"fawkes");
2395 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",tolua_collect_fawkes__MessageQueue);
2397 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",NULL);
2399 tolua_beginmodule(tolua_S,
"MessageQueue");
2400 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_new00);
2401 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
2402 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
2403 tolua_function(tolua_S,
"delete",tolua_fawkesinterface_fawkes_MessageQueue_delete00);
2405 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",tolua_collect_fawkes__MessageQueue__MessageIterator);
2407 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",NULL);
2409 tolua_beginmodule(tolua_S,
"MessageIterator");
2410 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00);
2411 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
2412 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
2413 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01);
2414 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
2415 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
2416 tolua_function(tolua_S,
".add",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00);
2417 tolua_function(tolua_S,
".eq",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00);
2418 tolua_function(tolua_S,
".mul",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00);
2419 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00);
2420 tolua_endmodule(tolua_S);
2421 tolua_function(tolua_S,
"append",tolua_fawkesinterface_fawkes_MessageQueue_append00);
2422 tolua_function(tolua_S,
"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove00);
2423 tolua_function(tolua_S,
"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove01);
2424 tolua_function(tolua_S,
"insert_after",tolua_fawkesinterface_fawkes_MessageQueue_insert_after00);
2425 tolua_function(tolua_S,
"size",tolua_fawkesinterface_fawkes_MessageQueue_size00);
2426 tolua_function(tolua_S,
"flush",tolua_fawkesinterface_fawkes_MessageQueue_flush00);
2427 tolua_function(tolua_S,
"empty",tolua_fawkesinterface_fawkes_MessageQueue_empty00);
2428 tolua_function(tolua_S,
"lock",tolua_fawkesinterface_fawkes_MessageQueue_lock00);
2429 tolua_function(tolua_S,
"try_lock",tolua_fawkesinterface_fawkes_MessageQueue_try_lock00);
2430 tolua_function(tolua_S,
"unlock",tolua_fawkesinterface_fawkes_MessageQueue_unlock00);
2431 tolua_function(tolua_S,
"first",tolua_fawkesinterface_fawkes_MessageQueue_first00);
2432 tolua_function(tolua_S,
"pop",tolua_fawkesinterface_fawkes_MessageQueue_pop00);
2433 tolua_function(tolua_S,
"begin",tolua_fawkesinterface_fawkes_MessageQueue_begin00);
2434 tolua_function(tolua_S,
"end",tolua_fawkesinterface_fawkes_MessageQueue_end00);
2435 tolua_endmodule(tolua_S);
2436 tolua_endmodule(tolua_S);
2437 tolua_endmodule(tolua_S);
2443 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
2444 TOLUA_API
int luaopen_fawkesinterface (lua_State* tolua_S) {
2445 return tolua_fawkesinterface_open(tolua_S);
Base class for all messages passed through interfaces in Fawkes BlackBoard.
const char * type() const
Get message type.
unsigned int refcount()
Get reference count for this instance.
unsigned int datasize() const
Get size of data.
unsigned int id() const
Get message ID.
Base class for all Fawkes BlackBoard interfaces.
const char * sender_thread_name() const
Get sender of message.
unsigned int sender_id() const
Get ID of sender.
Message queue used in interfaces.
Interface * interface() const
Get transmitting interface.
const void * datachunk() const
Get pointer to data.