19 #include <core/exception.h> 29 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S);
31 #include <interface/interface.h> 32 #include <utils/time/time.h> 33 #include <utils/time/clock.h> 34 #include <interface/message.h> 35 #include <interface/message_queue.h> 40 static int tolua_collect_fawkes__MessageQueue__MessageIterator (lua_State* tolua_S)
47 static int tolua_collect_fawkes__Message (lua_State* tolua_S)
54 static int tolua_collect_fawkes__MessageQueue (lua_State* tolua_S)
61 static int tolua_collect_size_t (lua_State* tolua_S)
63 size_t*
self = (
size_t*) tolua_tousertype(tolua_S,1,0);
71 static void tolua_reg_types (lua_State* tolua_S)
73 tolua_usertype(tolua_S,
"fawkes::MessageQueue::MessageIterator");
74 tolua_usertype(tolua_S,
"fawkes::Message");
75 tolua_usertype(tolua_S,
"fawkes::Clock");
76 tolua_usertype(tolua_S,
"fawkes::Interface");
77 tolua_usertype(tolua_S,
"fawkes::MessageQueue");
78 tolua_usertype(tolua_S,
"RefCount");
79 tolua_usertype(tolua_S,
"fawkes::Time");
80 tolua_usertype(tolua_S,
"size_t");
84 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_oftype00 85 static int tolua_fawkesinterface_fawkes_Interface_oftype00(lua_State* tolua_S)
88 tolua_Error tolua_err;
90 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
91 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
92 !tolua_isnoobj(tolua_S,3,&tolua_err)
99 const char* interface_type = ((
const char*) tolua_tostring(tolua_S,2,0));
100 #ifndef TOLUA_RELEASE 101 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'oftype'",NULL);
104 bool tolua_ret = (bool) self->oftype(interface_type);
105 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
109 #ifndef TOLUA_RELEASE 111 tolua_error(tolua_S,
"#ferror in function 'oftype'.",&tolua_err);
115 #endif //#ifndef TOLUA_DISABLE 118 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datachunk00 119 static int tolua_fawkesinterface_fawkes_Interface_datachunk00(lua_State* tolua_S)
121 #ifndef TOLUA_RELEASE 122 tolua_Error tolua_err;
124 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
125 !tolua_isnoobj(tolua_S,2,&tolua_err)
132 #ifndef TOLUA_RELEASE 133 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'",NULL);
136 const void* tolua_ret = (
const void*) self->datachunk();
137 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
141 #ifndef TOLUA_RELEASE 143 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
147 #endif //#ifndef TOLUA_DISABLE 150 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datasize00 151 static int tolua_fawkesinterface_fawkes_Interface_datasize00(lua_State* tolua_S)
153 #ifndef TOLUA_RELEASE 154 tolua_Error tolua_err;
156 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
157 !tolua_isnoobj(tolua_S,2,&tolua_err)
164 #ifndef TOLUA_RELEASE 165 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'",NULL);
168 unsigned int tolua_ret = (
unsigned int) self->datasize();
169 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
173 #ifndef TOLUA_RELEASE 175 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
179 #endif //#ifndef TOLUA_DISABLE 182 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_type00 183 static int tolua_fawkesinterface_fawkes_Interface_type00(lua_State* tolua_S)
185 #ifndef TOLUA_RELEASE 186 tolua_Error tolua_err;
188 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
189 !tolua_isnoobj(tolua_S,2,&tolua_err)
196 #ifndef TOLUA_RELEASE 197 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'",NULL);
200 const char* tolua_ret = (
const char*) self->type();
201 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
205 #ifndef TOLUA_RELEASE 207 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
211 #endif //#ifndef TOLUA_DISABLE 214 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_id00 215 static int tolua_fawkesinterface_fawkes_Interface_id00(lua_State* tolua_S)
217 #ifndef TOLUA_RELEASE 218 tolua_Error tolua_err;
220 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
221 !tolua_isnoobj(tolua_S,2,&tolua_err)
228 #ifndef TOLUA_RELEASE 229 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
232 const char* tolua_ret = (
const char*) self->id();
233 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
237 #ifndef TOLUA_RELEASE 239 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
243 #endif //#ifndef TOLUA_DISABLE 246 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_uid00 247 static int tolua_fawkesinterface_fawkes_Interface_uid00(lua_State* tolua_S)
249 #ifndef TOLUA_RELEASE 250 tolua_Error tolua_err;
252 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
253 !tolua_isnoobj(tolua_S,2,&tolua_err)
260 #ifndef TOLUA_RELEASE 261 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'uid'",NULL);
264 const char* tolua_ret = (
const char*) self->uid();
265 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
269 #ifndef TOLUA_RELEASE 271 tolua_error(tolua_S,
"#ferror in function 'uid'.",&tolua_err);
275 #endif //#ifndef TOLUA_DISABLE 278 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_serial00 279 static int tolua_fawkesinterface_fawkes_Interface_serial00(lua_State* tolua_S)
281 #ifndef TOLUA_RELEASE 282 tolua_Error tolua_err;
284 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
285 !tolua_isnoobj(tolua_S,2,&tolua_err)
292 #ifndef TOLUA_RELEASE 293 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'serial'",NULL);
296 unsigned int tolua_ret = (
unsigned int) self->serial();
297 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
301 #ifndef TOLUA_RELEASE 303 tolua_error(tolua_S,
"#ferror in function 'serial'.",&tolua_err);
307 #endif //#ifndef TOLUA_DISABLE 310 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_mem_serial00 311 static int tolua_fawkesinterface_fawkes_Interface_mem_serial00(lua_State* tolua_S)
313 #ifndef TOLUA_RELEASE 314 tolua_Error tolua_err;
316 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
317 !tolua_isnoobj(tolua_S,2,&tolua_err)
324 #ifndef TOLUA_RELEASE 325 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'mem_serial'",NULL);
328 unsigned int tolua_ret = (
unsigned int) self->mem_serial();
329 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
333 #ifndef TOLUA_RELEASE 335 tolua_error(tolua_S,
"#ferror in function 'mem_serial'.",&tolua_err);
339 #endif //#ifndef TOLUA_DISABLE 342 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface__eq00 343 static int tolua_fawkesinterface_fawkes_Interface__eq00(lua_State* tolua_S)
345 #ifndef TOLUA_RELEASE 346 tolua_Error tolua_err;
348 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
349 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Interface",0,&tolua_err)) ||
350 !tolua_isnoobj(tolua_S,3,&tolua_err)
358 #ifndef TOLUA_RELEASE 359 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='",NULL);
362 bool tolua_ret = (bool) self->operator==(*comp);
363 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
367 #ifndef TOLUA_RELEASE 369 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
373 #endif //#ifndef TOLUA_DISABLE 376 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash00 377 static int tolua_fawkesinterface_fawkes_Interface_hash00(lua_State* tolua_S)
379 #ifndef TOLUA_RELEASE 380 tolua_Error tolua_err;
382 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
383 !tolua_isnoobj(tolua_S,2,&tolua_err)
390 #ifndef TOLUA_RELEASE 391 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash'",NULL);
394 unsigned const char* tolua_ret = (
unsigned const char*) self->hash();
395 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
399 #ifndef TOLUA_RELEASE 401 tolua_error(tolua_S,
"#ferror in function 'hash'.",&tolua_err);
405 #endif //#ifndef TOLUA_DISABLE 408 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_size00 409 static int tolua_fawkesinterface_fawkes_Interface_hash_size00(lua_State* tolua_S)
411 #ifndef TOLUA_RELEASE 412 tolua_Error tolua_err;
414 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
415 !tolua_isnoobj(tolua_S,2,&tolua_err)
422 #ifndef TOLUA_RELEASE 423 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_size'",NULL);
426 size_t tolua_ret = (size_t) self->hash_size();
429 void* tolua_obj = Mtolua_new((
size_t)(tolua_ret));
430 tolua_pushusertype(tolua_S,tolua_obj,
"size_t");
431 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
433 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(
size_t));
434 tolua_pushusertype(tolua_S,tolua_obj,
"size_t");
435 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
441 #ifndef TOLUA_RELEASE 443 tolua_error(tolua_S,
"#ferror in function 'hash_size'.",&tolua_err);
447 #endif //#ifndef TOLUA_DISABLE 450 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_printable00 451 static int tolua_fawkesinterface_fawkes_Interface_hash_printable00(lua_State* tolua_S)
453 #ifndef TOLUA_RELEASE 454 tolua_Error tolua_err;
456 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
457 !tolua_isnoobj(tolua_S,2,&tolua_err)
464 #ifndef TOLUA_RELEASE 465 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_printable'",NULL);
468 const char* tolua_ret = (
const char*) self->hash_printable();
469 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
473 #ifndef TOLUA_RELEASE 475 tolua_error(tolua_S,
"#ferror in function 'hash_printable'.",&tolua_err);
479 #endif //#ifndef TOLUA_DISABLE 482 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_is_writer00 483 static int tolua_fawkesinterface_fawkes_Interface_is_writer00(lua_State* tolua_S)
485 #ifndef TOLUA_RELEASE 486 tolua_Error tolua_err;
488 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
489 !tolua_isnoobj(tolua_S,2,&tolua_err)
496 #ifndef TOLUA_RELEASE 497 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_writer'",NULL);
500 bool tolua_ret = (bool) self->is_writer();
501 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
505 #ifndef TOLUA_RELEASE 507 tolua_error(tolua_S,
"#ferror in function 'is_writer'.",&tolua_err);
511 #endif //#ifndef TOLUA_DISABLE 514 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_from_chunk00 515 static int tolua_fawkesinterface_fawkes_Interface_set_from_chunk00(lua_State* tolua_S)
517 #ifndef TOLUA_RELEASE 518 tolua_Error tolua_err;
520 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
521 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
522 !tolua_isnoobj(tolua_S,3,&tolua_err)
529 void* chunk = ((
void*) tolua_touserdata(tolua_S,2,0));
530 #ifndef TOLUA_RELEASE 531 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_from_chunk'",NULL);
534 self->set_from_chunk(chunk);
538 #ifndef TOLUA_RELEASE 540 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
544 #endif //#ifndef TOLUA_DISABLE 547 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_create_message_generic00 548 static int tolua_fawkesinterface_fawkes_Interface_create_message_generic00(lua_State* tolua_S)
550 #ifndef TOLUA_RELEASE 551 tolua_Error tolua_err;
553 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
554 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
555 !tolua_isnoobj(tolua_S,3,&tolua_err)
562 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
563 #ifndef TOLUA_RELEASE 564 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'create_message'",NULL);
568 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
572 #ifndef TOLUA_RELEASE 574 tolua_error(tolua_S,
"#ferror in function 'create_message_generic'.",&tolua_err);
578 #endif //#ifndef TOLUA_DISABLE 581 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_read00 582 static int tolua_fawkesinterface_fawkes_Interface_read00(lua_State* tolua_S)
584 #ifndef TOLUA_RELEASE 585 tolua_Error tolua_err;
587 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
588 !tolua_isnoobj(tolua_S,2,&tolua_err)
595 #ifndef TOLUA_RELEASE 596 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'read'",NULL);
603 #ifndef TOLUA_RELEASE 605 tolua_error(tolua_S,
"#ferror in function 'read'.",&tolua_err);
609 #endif //#ifndef TOLUA_DISABLE 612 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_write00 613 static int tolua_fawkesinterface_fawkes_Interface_write00(lua_State* tolua_S)
615 #ifndef TOLUA_RELEASE 616 tolua_Error tolua_err;
618 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
619 !tolua_isnoobj(tolua_S,2,&tolua_err)
626 #ifndef TOLUA_RELEASE 627 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'write'",NULL);
634 #ifndef TOLUA_RELEASE 636 tolua_error(tolua_S,
"#ferror in function 'write'.",&tolua_err);
640 #endif //#ifndef TOLUA_DISABLE 643 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_has_writer00 644 static int tolua_fawkesinterface_fawkes_Interface_has_writer00(lua_State* tolua_S)
646 #ifndef TOLUA_RELEASE 647 tolua_Error tolua_err;
649 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
650 !tolua_isnoobj(tolua_S,2,&tolua_err)
657 #ifndef TOLUA_RELEASE 658 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'has_writer'",NULL);
661 bool tolua_ret = (bool) self->has_writer();
662 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
666 #ifndef TOLUA_RELEASE 668 tolua_error(tolua_S,
"#ferror in function 'has_writer'.",&tolua_err);
672 #endif //#ifndef TOLUA_DISABLE 675 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_num_readers00 676 static int tolua_fawkesinterface_fawkes_Interface_num_readers00(lua_State* tolua_S)
678 #ifndef TOLUA_RELEASE 679 tolua_Error tolua_err;
681 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
682 !tolua_isnoobj(tolua_S,2,&tolua_err)
689 #ifndef TOLUA_RELEASE 690 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'num_readers'",NULL);
693 unsigned int tolua_ret = (
unsigned int) self->num_readers();
694 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
698 #ifndef TOLUA_RELEASE 700 tolua_error(tolua_S,
"#ferror in function 'num_readers'.",&tolua_err);
704 #endif //#ifndef TOLUA_DISABLE 707 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_changed00 708 static int tolua_fawkesinterface_fawkes_Interface_changed00(lua_State* tolua_S)
710 #ifndef TOLUA_RELEASE 711 tolua_Error tolua_err;
713 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
714 !tolua_isnoobj(tolua_S,2,&tolua_err)
721 #ifndef TOLUA_RELEASE 722 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'changed'",NULL);
725 bool tolua_ret = (bool) self->changed();
726 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
730 #ifndef TOLUA_RELEASE 732 tolua_error(tolua_S,
"#ferror in function 'changed'.",&tolua_err);
736 #endif //#ifndef TOLUA_DISABLE 739 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_timestamp00 740 static int tolua_fawkesinterface_fawkes_Interface_timestamp00(lua_State* tolua_S)
742 #ifndef TOLUA_RELEASE 743 tolua_Error tolua_err;
745 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
746 !tolua_isnoobj(tolua_S,2,&tolua_err)
753 #ifndef TOLUA_RELEASE 754 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'timestamp'",NULL);
758 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"const fawkes::Time");
762 #ifndef TOLUA_RELEASE 764 tolua_error(tolua_S,
"#ferror in function 'timestamp'.",&tolua_err);
768 #endif //#ifndef TOLUA_DISABLE 771 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00 772 static int tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00(lua_State* tolua_S)
774 #ifndef TOLUA_RELEASE 775 tolua_Error tolua_err;
777 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
778 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
779 !tolua_isnoobj(tolua_S,3,&tolua_err)
786 bool enabled = ((bool) tolua_toboolean(tolua_S,2,0));
787 #ifndef TOLUA_RELEASE 788 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_auto_timestamping'",NULL);
791 self->set_auto_timestamping(enabled);
795 #ifndef TOLUA_RELEASE 797 tolua_error(tolua_S,
"#ferror in function 'set_auto_timestamping'.",&tolua_err);
801 #endif //#ifndef TOLUA_DISABLE 804 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_timestamp00 805 static int tolua_fawkesinterface_fawkes_Interface_set_timestamp00(lua_State* tolua_S)
807 #ifndef TOLUA_RELEASE 808 tolua_Error tolua_err;
810 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
811 !tolua_isusertype(tolua_S,2,
"const fawkes::Time",0,&tolua_err) ||
812 !tolua_isnoobj(tolua_S,3,&tolua_err)
820 #ifndef TOLUA_RELEASE 821 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_timestamp'",NULL);
824 self->set_timestamp(t);
828 #ifndef TOLUA_RELEASE 830 tolua_error(tolua_S,
"#ferror in function 'set_timestamp'.",&tolua_err);
834 #endif //#ifndef TOLUA_DISABLE 837 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_clock00 838 static int tolua_fawkesinterface_fawkes_Interface_set_clock00(lua_State* tolua_S)
840 #ifndef TOLUA_RELEASE 841 tolua_Error tolua_err;
843 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
844 !tolua_isusertype(tolua_S,2,
"fawkes::Clock",0,&tolua_err) ||
845 !tolua_isnoobj(tolua_S,3,&tolua_err)
853 #ifndef TOLUA_RELEASE 854 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_clock'",NULL);
857 self->set_clock(clock);
861 #ifndef TOLUA_RELEASE 863 tolua_error(tolua_S,
"#ferror in function 'set_clock'.",&tolua_err);
867 #endif //#ifndef TOLUA_DISABLE 870 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00 871 static int tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00(lua_State* tolua_S)
873 #ifndef TOLUA_RELEASE 874 tolua_Error tolua_err;
876 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
877 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
878 !tolua_isnoobj(tolua_S,3,&tolua_err)
886 #ifndef TOLUA_RELEASE 887 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_enqueue_copy'",NULL);
890 unsigned int tolua_ret = (
unsigned int) self->msgq_enqueue_copy(message);
891 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
895 #ifndef TOLUA_RELEASE 897 tolua_error(tolua_S,
"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
901 #endif //#ifndef TOLUA_DISABLE 904 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove00 905 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove00(lua_State* tolua_S)
907 #ifndef TOLUA_RELEASE 908 tolua_Error tolua_err;
910 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
911 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
912 !tolua_isnoobj(tolua_S,3,&tolua_err)
920 #ifndef TOLUA_RELEASE 921 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'",NULL);
924 self->msgq_remove(message);
928 #ifndef TOLUA_RELEASE 930 tolua_error(tolua_S,
"#ferror in function 'msgq_remove'.",&tolua_err);
934 #endif //#ifndef TOLUA_DISABLE 937 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove01 938 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove01(lua_State* tolua_S)
940 tolua_Error tolua_err;
942 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
943 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
944 !tolua_isnoobj(tolua_S,3,&tolua_err)
950 unsigned int message_id = ((
unsigned int) tolua_tonumber(tolua_S,2,0));
951 #ifndef TOLUA_RELEASE 952 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'",NULL);
955 self->msgq_remove(message_id);
960 return tolua_fawkesinterface_fawkes_Interface_msgq_remove00(tolua_S);
962 #endif //#ifndef TOLUA_DISABLE 965 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_size00 966 static int tolua_fawkesinterface_fawkes_Interface_msgq_size00(lua_State* tolua_S)
968 #ifndef TOLUA_RELEASE 969 tolua_Error tolua_err;
971 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
972 !tolua_isnoobj(tolua_S,2,&tolua_err)
979 #ifndef TOLUA_RELEASE 980 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_size'",NULL);
983 unsigned int tolua_ret = (
unsigned int) self->msgq_size();
984 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
988 #ifndef TOLUA_RELEASE 990 tolua_error(tolua_S,
"#ferror in function 'msgq_size'.",&tolua_err);
994 #endif //#ifndef TOLUA_DISABLE 997 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_flush00 998 static int tolua_fawkesinterface_fawkes_Interface_msgq_flush00(lua_State* tolua_S)
1000 #ifndef TOLUA_RELEASE 1001 tolua_Error tolua_err;
1003 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1004 !tolua_isnoobj(tolua_S,2,&tolua_err)
1011 #ifndef TOLUA_RELEASE 1012 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_flush'",NULL);
1019 #ifndef TOLUA_RELEASE 1021 tolua_error(tolua_S,
"#ferror in function 'msgq_flush'.",&tolua_err);
1025 #endif //#ifndef TOLUA_DISABLE 1028 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_lock00 1029 static int tolua_fawkesinterface_fawkes_Interface_msgq_lock00(lua_State* tolua_S)
1031 #ifndef TOLUA_RELEASE 1032 tolua_Error tolua_err;
1034 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1035 !tolua_isnoobj(tolua_S,2,&tolua_err)
1042 #ifndef TOLUA_RELEASE 1043 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_lock'",NULL);
1050 #ifndef TOLUA_RELEASE 1052 tolua_error(tolua_S,
"#ferror in function 'msgq_lock'.",&tolua_err);
1056 #endif //#ifndef TOLUA_DISABLE 1059 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00 1060 static int tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00(lua_State* tolua_S)
1062 #ifndef TOLUA_RELEASE 1063 tolua_Error tolua_err;
1065 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1066 !tolua_isnoobj(tolua_S,2,&tolua_err)
1073 #ifndef TOLUA_RELEASE 1074 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_try_lock'",NULL);
1077 bool tolua_ret = (bool) self->msgq_try_lock();
1078 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1082 #ifndef TOLUA_RELEASE 1084 tolua_error(tolua_S,
"#ferror in function 'msgq_try_lock'.",&tolua_err);
1088 #endif //#ifndef TOLUA_DISABLE 1091 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_unlock00 1092 static int tolua_fawkesinterface_fawkes_Interface_msgq_unlock00(lua_State* tolua_S)
1094 #ifndef TOLUA_RELEASE 1095 tolua_Error tolua_err;
1097 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1098 !tolua_isnoobj(tolua_S,2,&tolua_err)
1105 #ifndef TOLUA_RELEASE 1106 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_unlock'",NULL);
1109 self->msgq_unlock();
1113 #ifndef TOLUA_RELEASE 1115 tolua_error(tolua_S,
"#ferror in function 'msgq_unlock'.",&tolua_err);
1119 #endif //#ifndef TOLUA_DISABLE 1122 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_pop00 1123 static int tolua_fawkesinterface_fawkes_Interface_msgq_pop00(lua_State* tolua_S)
1125 #ifndef TOLUA_RELEASE 1126 tolua_Error tolua_err;
1128 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1129 !tolua_isnoobj(tolua_S,2,&tolua_err)
1136 #ifndef TOLUA_RELEASE 1137 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_pop'",NULL);
1144 #ifndef TOLUA_RELEASE 1146 tolua_error(tolua_S,
"#ferror in function 'msgq_pop'.",&tolua_err);
1150 #endif //#ifndef TOLUA_DISABLE 1153 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00 1154 static int tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00(lua_State* tolua_S)
1156 #ifndef TOLUA_RELEASE 1157 tolua_Error tolua_err;
1159 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1160 !tolua_isnoobj(tolua_S,2,&tolua_err)
1167 #ifndef TOLUA_RELEASE 1168 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_first'",NULL);
1172 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1176 #ifndef TOLUA_RELEASE 1178 tolua_error(tolua_S,
"#ferror in function 'msgq_first_generic'.",&tolua_err);
1182 #endif //#ifndef TOLUA_DISABLE 1185 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_empty00 1186 static int tolua_fawkesinterface_fawkes_Interface_msgq_empty00(lua_State* tolua_S)
1188 #ifndef TOLUA_RELEASE 1189 tolua_Error tolua_err;
1191 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1192 !tolua_isnoobj(tolua_S,2,&tolua_err)
1199 #ifndef TOLUA_RELEASE 1200 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_empty'",NULL);
1203 bool tolua_ret = (bool) self->msgq_empty();
1204 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1208 #ifndef TOLUA_RELEASE 1210 tolua_error(tolua_S,
"#ferror in function 'msgq_empty'.",&tolua_err);
1214 #endif //#ifndef TOLUA_DISABLE 1217 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00 1218 static int tolua_fawkesinterface_fawkes_Message_new00(lua_State* tolua_S)
1220 #ifndef TOLUA_RELEASE 1221 tolua_Error tolua_err;
1223 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1224 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1225 !tolua_isnoobj(tolua_S,3,&tolua_err)
1231 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1234 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1238 #ifndef TOLUA_RELEASE 1240 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1244 #endif //#ifndef TOLUA_DISABLE 1247 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00_local 1248 static int tolua_fawkesinterface_fawkes_Message_new00_local(lua_State* tolua_S)
1250 #ifndef TOLUA_RELEASE 1251 tolua_Error tolua_err;
1253 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1254 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1255 !tolua_isnoobj(tolua_S,3,&tolua_err)
1261 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1264 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1265 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1269 #ifndef TOLUA_RELEASE 1271 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1275 #endif //#ifndef TOLUA_DISABLE 1278 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01 1279 static int tolua_fawkesinterface_fawkes_Message_new01(lua_State* tolua_S)
1281 tolua_Error tolua_err;
1283 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1284 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1285 !tolua_isnoobj(tolua_S,3,&tolua_err)
1293 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1298 return tolua_fawkesinterface_fawkes_Message_new00(tolua_S);
1300 #endif //#ifndef TOLUA_DISABLE 1303 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01_local 1304 static int tolua_fawkesinterface_fawkes_Message_new01_local(lua_State* tolua_S)
1306 tolua_Error tolua_err;
1308 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1309 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1310 !tolua_isnoobj(tolua_S,3,&tolua_err)
1318 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1319 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1324 return tolua_fawkesinterface_fawkes_Message_new00_local(tolua_S);
1326 #endif //#ifndef TOLUA_DISABLE 1329 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02 1330 static int tolua_fawkesinterface_fawkes_Message_new02(lua_State* tolua_S)
1332 tolua_Error tolua_err;
1334 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1335 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err)) ||
1336 !tolua_isnoobj(tolua_S,3,&tolua_err)
1344 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1349 return tolua_fawkesinterface_fawkes_Message_new01(tolua_S);
1351 #endif //#ifndef TOLUA_DISABLE 1354 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02_local 1355 static int tolua_fawkesinterface_fawkes_Message_new02_local(lua_State* tolua_S)
1357 tolua_Error tolua_err;
1359 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1360 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err)) ||
1361 !tolua_isnoobj(tolua_S,3,&tolua_err)
1369 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1370 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1375 return tolua_fawkesinterface_fawkes_Message_new01_local(tolua_S);
1377 #endif //#ifndef TOLUA_DISABLE 1380 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_id00 1381 static int tolua_fawkesinterface_fawkes_Message_id00(lua_State* tolua_S)
1383 #ifndef TOLUA_RELEASE 1384 tolua_Error tolua_err;
1386 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1387 !tolua_isnoobj(tolua_S,2,&tolua_err)
1394 #ifndef TOLUA_RELEASE 1395 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
1398 unsigned int tolua_ret = (
unsigned int) self->
id();
1399 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1403 #ifndef TOLUA_RELEASE 1405 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
1409 #endif //#ifndef TOLUA_DISABLE 1412 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_id00 1413 static int tolua_fawkesinterface_fawkes_Message_sender_id00(lua_State* tolua_S)
1415 #ifndef TOLUA_RELEASE 1416 tolua_Error tolua_err;
1418 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1419 !tolua_isnoobj(tolua_S,2,&tolua_err)
1426 #ifndef TOLUA_RELEASE 1427 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_id'",NULL);
1430 unsigned int tolua_ret = (
unsigned int) self->
sender_id();
1431 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1435 #ifndef TOLUA_RELEASE 1437 tolua_error(tolua_S,
"#ferror in function 'sender_id'.",&tolua_err);
1441 #endif //#ifndef TOLUA_DISABLE 1444 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_thread_name00 1445 static int tolua_fawkesinterface_fawkes_Message_sender_thread_name00(lua_State* tolua_S)
1447 #ifndef TOLUA_RELEASE 1448 tolua_Error tolua_err;
1450 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1451 !tolua_isnoobj(tolua_S,2,&tolua_err)
1458 #ifndef TOLUA_RELEASE 1459 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_thread_name'",NULL);
1463 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1467 #ifndef TOLUA_RELEASE 1469 tolua_error(tolua_S,
"#ferror in function 'sender_thread_name'.",&tolua_err);
1473 #endif //#ifndef TOLUA_DISABLE 1476 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_interface00 1477 static int tolua_fawkesinterface_fawkes_Message_interface00(lua_State* tolua_S)
1479 #ifndef TOLUA_RELEASE 1480 tolua_Error tolua_err;
1482 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1483 !tolua_isnoobj(tolua_S,2,&tolua_err)
1490 #ifndef TOLUA_RELEASE 1491 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'interface'",NULL);
1495 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Interface");
1499 #ifndef TOLUA_RELEASE 1501 tolua_error(tolua_S,
"#ferror in function 'interface'.",&tolua_err);
1505 #endif //#ifndef TOLUA_DISABLE 1508 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_type00 1509 static int tolua_fawkesinterface_fawkes_Message_type00(lua_State* tolua_S)
1511 #ifndef TOLUA_RELEASE 1512 tolua_Error tolua_err;
1514 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1515 !tolua_isnoobj(tolua_S,2,&tolua_err)
1522 #ifndef TOLUA_RELEASE 1523 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'",NULL);
1526 const char* tolua_ret = (
const char*) self->
type();
1527 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1531 #ifndef TOLUA_RELEASE 1533 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
1537 #endif //#ifndef TOLUA_DISABLE 1540 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datachunk00 1541 static int tolua_fawkesinterface_fawkes_Message_datachunk00(lua_State* tolua_S)
1543 #ifndef TOLUA_RELEASE 1544 tolua_Error tolua_err;
1546 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1547 !tolua_isnoobj(tolua_S,2,&tolua_err)
1554 #ifndef TOLUA_RELEASE 1555 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'",NULL);
1558 const void* tolua_ret = (
const void*) self->
datachunk();
1559 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
1563 #ifndef TOLUA_RELEASE 1565 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
1569 #endif //#ifndef TOLUA_DISABLE 1572 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datasize00 1573 static int tolua_fawkesinterface_fawkes_Message_datasize00(lua_State* tolua_S)
1575 #ifndef TOLUA_RELEASE 1576 tolua_Error tolua_err;
1578 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1579 !tolua_isnoobj(tolua_S,2,&tolua_err)
1586 #ifndef TOLUA_RELEASE 1587 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'",NULL);
1590 unsigned int tolua_ret = (
unsigned int) self->
datasize();
1591 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1595 #ifndef TOLUA_RELEASE 1597 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
1601 #endif //#ifndef TOLUA_DISABLE 1604 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_set_from_chunk00 1605 static int tolua_fawkesinterface_fawkes_Message_set_from_chunk00(lua_State* tolua_S)
1607 #ifndef TOLUA_RELEASE 1608 tolua_Error tolua_err;
1610 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1611 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
1612 !tolua_isnoobj(tolua_S,3,&tolua_err)
1619 const void* chunk = ((
const void*) tolua_touserdata(tolua_S,2,0));
1620 #ifndef TOLUA_RELEASE 1621 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_from_chunk'",NULL);
1624 self->set_from_chunk(chunk);
1628 #ifndef TOLUA_RELEASE 1630 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
1634 #endif //#ifndef TOLUA_DISABLE 1637 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_ref00 1638 static int tolua_fawkesinterface_fawkes_Message_ref00(lua_State* tolua_S)
1640 #ifndef TOLUA_RELEASE 1641 tolua_Error tolua_err;
1643 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1644 !tolua_isnoobj(tolua_S,2,&tolua_err)
1651 #ifndef TOLUA_RELEASE 1652 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'ref'",NULL);
1659 #ifndef TOLUA_RELEASE 1661 tolua_error(tolua_S,
"#ferror in function 'ref'.",&tolua_err);
1665 #endif //#ifndef TOLUA_DISABLE 1668 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_unref00 1669 static int tolua_fawkesinterface_fawkes_Message_unref00(lua_State* tolua_S)
1671 #ifndef TOLUA_RELEASE 1672 tolua_Error tolua_err;
1674 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1675 !tolua_isnoobj(tolua_S,2,&tolua_err)
1682 #ifndef TOLUA_RELEASE 1683 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unref'",NULL);
1690 #ifndef TOLUA_RELEASE 1692 tolua_error(tolua_S,
"#ferror in function 'unref'.",&tolua_err);
1696 #endif //#ifndef TOLUA_DISABLE 1699 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_refcount00 1700 static int tolua_fawkesinterface_fawkes_Message_refcount00(lua_State* tolua_S)
1702 #ifndef TOLUA_RELEASE 1703 tolua_Error tolua_err;
1705 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1706 !tolua_isnoobj(tolua_S,2,&tolua_err)
1713 #ifndef TOLUA_RELEASE 1714 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'refcount'",NULL);
1717 unsigned int tolua_ret = (
unsigned int) self->
refcount();
1718 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1722 #ifndef TOLUA_RELEASE 1724 tolua_error(tolua_S,
"#ferror in function 'refcount'.",&tolua_err);
1728 #endif //#ifndef TOLUA_DISABLE 1731 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00 1732 static int tolua_fawkesinterface_fawkes_MessageQueue_new00(lua_State* tolua_S)
1734 #ifndef TOLUA_RELEASE 1735 tolua_Error tolua_err;
1737 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1738 !tolua_isnoobj(tolua_S,2,&tolua_err)
1746 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
1750 #ifndef TOLUA_RELEASE 1752 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1756 #endif //#ifndef TOLUA_DISABLE 1759 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00_local 1760 static int tolua_fawkesinterface_fawkes_MessageQueue_new00_local(lua_State* tolua_S)
1762 #ifndef TOLUA_RELEASE 1763 tolua_Error tolua_err;
1765 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1766 !tolua_isnoobj(tolua_S,2,&tolua_err)
1774 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
1775 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1779 #ifndef TOLUA_RELEASE 1781 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1785 #endif //#ifndef TOLUA_DISABLE 1788 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_delete00 1789 static int tolua_fawkesinterface_fawkes_MessageQueue_delete00(lua_State* tolua_S)
1791 #ifndef TOLUA_RELEASE 1792 tolua_Error tolua_err;
1794 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1795 !tolua_isnoobj(tolua_S,2,&tolua_err)
1802 #ifndef TOLUA_RELEASE 1803 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'delete'",NULL);
1805 Mtolua_delete(
self);
1808 #ifndef TOLUA_RELEASE 1810 tolua_error(tolua_S,
"#ferror in function 'delete'.",&tolua_err);
1814 #endif //#ifndef TOLUA_DISABLE 1817 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00 1818 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(lua_State* tolua_S)
1820 #ifndef TOLUA_RELEASE 1821 tolua_Error tolua_err;
1823 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1824 !tolua_isnoobj(tolua_S,2,&tolua_err)
1832 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1836 #ifndef TOLUA_RELEASE 1838 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1842 #endif //#ifndef TOLUA_DISABLE 1845 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local 1846 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(lua_State* tolua_S)
1848 #ifndef TOLUA_RELEASE 1849 tolua_Error tolua_err;
1851 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1852 !tolua_isnoobj(tolua_S,2,&tolua_err)
1860 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1861 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1865 #ifndef TOLUA_RELEASE 1867 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1871 #endif //#ifndef TOLUA_DISABLE 1874 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01 1875 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01(lua_State* tolua_S)
1877 tolua_Error tolua_err;
1879 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1880 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1881 !tolua_isnoobj(tolua_S,3,&tolua_err)
1889 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1894 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(tolua_S);
1896 #endif //#ifndef TOLUA_DISABLE 1899 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local 1900 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local(lua_State* tolua_S)
1902 tolua_Error tolua_err;
1904 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1905 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1906 !tolua_isnoobj(tolua_S,3,&tolua_err)
1914 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1915 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1920 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(tolua_S);
1922 #endif //#ifndef TOLUA_DISABLE 1925 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00 1926 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00(lua_State* tolua_S)
1928 #ifndef TOLUA_RELEASE 1929 tolua_Error tolua_err;
1931 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1932 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1933 !tolua_isnoobj(tolua_S,3,&tolua_err)
1940 unsigned int i = ((
unsigned int) tolua_tonumber(tolua_S,2,0));
1941 #ifndef TOLUA_RELEASE 1942 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator+'",NULL);
1946 tolua_pushusertype(tolua_S,(
void*)&tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1950 #ifndef TOLUA_RELEASE 1952 tolua_error(tolua_S,
"#ferror in function '.add'.",&tolua_err);
1956 #endif //#ifndef TOLUA_DISABLE 1959 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00 1960 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00(lua_State* tolua_S)
1962 #ifndef TOLUA_RELEASE 1963 tolua_Error tolua_err;
1965 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1966 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
1967 !tolua_isnoobj(tolua_S,3,&tolua_err)
1975 #ifndef TOLUA_RELEASE 1976 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='",NULL);
1979 bool tolua_ret = (bool) self->operator==(*c);
1980 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1984 #ifndef TOLUA_RELEASE 1986 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
1990 #endif //#ifndef TOLUA_DISABLE 1993 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00 1994 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00(lua_State* tolua_S)
1996 #ifndef TOLUA_RELEASE 1997 tolua_Error tolua_err;
1999 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2000 !tolua_isnoobj(tolua_S,2,&tolua_err)
2007 #ifndef TOLUA_RELEASE 2008 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator*'",NULL);
2012 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
2016 #ifndef TOLUA_RELEASE 2018 tolua_error(tolua_S,
"#ferror in function '.mul'.",&tolua_err);
2022 #endif //#ifndef TOLUA_DISABLE 2025 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00 2026 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00(lua_State* tolua_S)
2028 #ifndef TOLUA_RELEASE 2029 tolua_Error tolua_err;
2031 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2032 !tolua_isnoobj(tolua_S,2,&tolua_err)
2039 #ifndef TOLUA_RELEASE 2040 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
2043 unsigned int tolua_ret = (
unsigned int) self->
id();
2044 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2048 #ifndef TOLUA_RELEASE 2050 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
2054 #endif //#ifndef TOLUA_DISABLE 2057 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_append00 2058 static int tolua_fawkesinterface_fawkes_MessageQueue_append00(lua_State* tolua_S)
2060 #ifndef TOLUA_RELEASE 2061 tolua_Error tolua_err;
2063 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2064 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
2065 !tolua_isnoobj(tolua_S,3,&tolua_err)
2073 #ifndef TOLUA_RELEASE 2074 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'append'",NULL);
2081 #ifndef TOLUA_RELEASE 2083 tolua_error(tolua_S,
"#ferror in function 'append'.",&tolua_err);
2087 #endif //#ifndef TOLUA_DISABLE 2090 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove00 2091 static int tolua_fawkesinterface_fawkes_MessageQueue_remove00(lua_State* tolua_S)
2093 #ifndef TOLUA_RELEASE 2094 tolua_Error tolua_err;
2096 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2097 !tolua_isusertype(tolua_S,2,
"const fawkes::Message",0,&tolua_err) ||
2098 !tolua_isnoobj(tolua_S,3,&tolua_err)
2106 #ifndef TOLUA_RELEASE 2107 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'",NULL);
2114 #ifndef TOLUA_RELEASE 2116 tolua_error(tolua_S,
"#ferror in function 'remove'.",&tolua_err);
2120 #endif //#ifndef TOLUA_DISABLE 2123 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove01 2124 static int tolua_fawkesinterface_fawkes_MessageQueue_remove01(lua_State* tolua_S)
2126 tolua_Error tolua_err;
2128 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2129 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2130 !tolua_isnoobj(tolua_S,3,&tolua_err)
2136 unsigned const int msg_id = ((
unsigned const int) tolua_tonumber(tolua_S,2,0));
2137 #ifndef TOLUA_RELEASE 2138 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'",NULL);
2141 self->remove(msg_id);
2146 return tolua_fawkesinterface_fawkes_MessageQueue_remove00(tolua_S);
2148 #endif //#ifndef TOLUA_DISABLE 2151 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_insert_after00 2152 static int tolua_fawkesinterface_fawkes_MessageQueue_insert_after00(lua_State* tolua_S)
2154 #ifndef TOLUA_RELEASE 2155 tolua_Error tolua_err;
2157 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2158 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2159 !tolua_isusertype(tolua_S,3,
"fawkes::Message",0,&tolua_err) ||
2160 !tolua_isnoobj(tolua_S,4,&tolua_err)
2169 #ifndef TOLUA_RELEASE 2170 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'insert_after'",NULL);
2173 self->insert_after(*it,msg);
2177 #ifndef TOLUA_RELEASE 2179 tolua_error(tolua_S,
"#ferror in function 'insert_after'.",&tolua_err);
2183 #endif //#ifndef TOLUA_DISABLE 2186 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_size00 2187 static int tolua_fawkesinterface_fawkes_MessageQueue_size00(lua_State* tolua_S)
2189 #ifndef TOLUA_RELEASE 2190 tolua_Error tolua_err;
2192 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
2193 !tolua_isnoobj(tolua_S,2,&tolua_err)
2200 #ifndef TOLUA_RELEASE 2201 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'size'",NULL);
2204 unsigned int tolua_ret = (
unsigned int) self->size();
2205 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2209 #ifndef TOLUA_RELEASE 2211 tolua_error(tolua_S,
"#ferror in function 'size'.",&tolua_err);
2215 #endif //#ifndef TOLUA_DISABLE 2218 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_flush00 2219 static int tolua_fawkesinterface_fawkes_MessageQueue_flush00(lua_State* tolua_S)
2221 #ifndef TOLUA_RELEASE 2222 tolua_Error tolua_err;
2224 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2225 !tolua_isnoobj(tolua_S,2,&tolua_err)
2232 #ifndef TOLUA_RELEASE 2233 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'flush'",NULL);
2240 #ifndef TOLUA_RELEASE 2242 tolua_error(tolua_S,
"#ferror in function 'flush'.",&tolua_err);
2246 #endif //#ifndef TOLUA_DISABLE 2249 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_empty00 2250 static int tolua_fawkesinterface_fawkes_MessageQueue_empty00(lua_State* tolua_S)
2252 #ifndef TOLUA_RELEASE 2253 tolua_Error tolua_err;
2255 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
2256 !tolua_isnoobj(tolua_S,2,&tolua_err)
2263 #ifndef TOLUA_RELEASE 2264 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'empty'",NULL);
2267 bool tolua_ret = (bool) self->empty();
2268 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2272 #ifndef TOLUA_RELEASE 2274 tolua_error(tolua_S,
"#ferror in function 'empty'.",&tolua_err);
2278 #endif //#ifndef TOLUA_DISABLE 2281 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_lock00 2282 static int tolua_fawkesinterface_fawkes_MessageQueue_lock00(lua_State* tolua_S)
2284 #ifndef TOLUA_RELEASE 2285 tolua_Error tolua_err;
2287 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2288 !tolua_isnoobj(tolua_S,2,&tolua_err)
2295 #ifndef TOLUA_RELEASE 2296 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'",NULL);
2303 #ifndef TOLUA_RELEASE 2305 tolua_error(tolua_S,
"#ferror in function 'lock'.",&tolua_err);
2309 #endif //#ifndef TOLUA_DISABLE 2312 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_try_lock00 2313 static int tolua_fawkesinterface_fawkes_MessageQueue_try_lock00(lua_State* tolua_S)
2315 #ifndef TOLUA_RELEASE 2316 tolua_Error tolua_err;
2318 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2319 !tolua_isnoobj(tolua_S,2,&tolua_err)
2326 #ifndef TOLUA_RELEASE 2327 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'try_lock'",NULL);
2330 bool tolua_ret = (bool) self->try_lock();
2331 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2335 #ifndef TOLUA_RELEASE 2337 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
2341 #endif //#ifndef TOLUA_DISABLE 2344 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_unlock00 2345 static int tolua_fawkesinterface_fawkes_MessageQueue_unlock00(lua_State* tolua_S)
2347 #ifndef TOLUA_RELEASE 2348 tolua_Error tolua_err;
2350 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2351 !tolua_isnoobj(tolua_S,2,&tolua_err)
2358 #ifndef TOLUA_RELEASE 2359 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'",NULL);
2366 #ifndef TOLUA_RELEASE 2368 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
2372 #endif //#ifndef TOLUA_DISABLE 2375 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_first00 2376 static int tolua_fawkesinterface_fawkes_MessageQueue_first00(lua_State* tolua_S)
2378 #ifndef TOLUA_RELEASE 2379 tolua_Error tolua_err;
2381 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2382 !tolua_isnoobj(tolua_S,2,&tolua_err)
2389 #ifndef TOLUA_RELEASE 2390 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'first'",NULL);
2394 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
2398 #ifndef TOLUA_RELEASE 2400 tolua_error(tolua_S,
"#ferror in function 'first'.",&tolua_err);
2404 #endif //#ifndef TOLUA_DISABLE 2407 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_pop00 2408 static int tolua_fawkesinterface_fawkes_MessageQueue_pop00(lua_State* tolua_S)
2410 #ifndef TOLUA_RELEASE 2411 tolua_Error tolua_err;
2413 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2414 !tolua_isnoobj(tolua_S,2,&tolua_err)
2421 #ifndef TOLUA_RELEASE 2422 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'pop'",NULL);
2429 #ifndef TOLUA_RELEASE 2431 tolua_error(tolua_S,
"#ferror in function 'pop'.",&tolua_err);
2435 #endif //#ifndef TOLUA_DISABLE 2438 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_begin00 2439 static int tolua_fawkesinterface_fawkes_MessageQueue_begin00(lua_State* tolua_S)
2441 #ifndef TOLUA_RELEASE 2442 tolua_Error tolua_err;
2444 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2445 !tolua_isnoobj(tolua_S,2,&tolua_err)
2452 #ifndef TOLUA_RELEASE 2453 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'begin'",NULL);
2460 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2461 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2464 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2465 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2471 #ifndef TOLUA_RELEASE 2473 tolua_error(tolua_S,
"#ferror in function 'begin'.",&tolua_err);
2477 #endif //#ifndef TOLUA_DISABLE 2480 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_end00 2481 static int tolua_fawkesinterface_fawkes_MessageQueue_end00(lua_State* tolua_S)
2483 #ifndef TOLUA_RELEASE 2484 tolua_Error tolua_err;
2486 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2487 !tolua_isnoobj(tolua_S,2,&tolua_err)
2494 #ifndef TOLUA_RELEASE 2495 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'end'",NULL);
2502 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2503 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2506 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2507 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2513 #ifndef TOLUA_RELEASE 2515 tolua_error(tolua_S,
"#ferror in function 'end'.",&tolua_err);
2519 #endif //#ifndef TOLUA_DISABLE 2522 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S)
2524 tolua_open(tolua_S);
2525 tolua_reg_types(tolua_S);
2526 tolua_module(tolua_S,NULL,0);
2527 tolua_beginmodule(tolua_S,NULL);
2528 tolua_module(tolua_S,
"fawkes",0);
2529 tolua_beginmodule(tolua_S,
"fawkes");
2530 tolua_cclass(tolua_S,
"Interface",
"fawkes::Interface",
"",NULL);
2531 tolua_beginmodule(tolua_S,
"Interface");
2532 tolua_function(tolua_S,
"oftype",tolua_fawkesinterface_fawkes_Interface_oftype00);
2533 tolua_function(tolua_S,
"datachunk",tolua_fawkesinterface_fawkes_Interface_datachunk00);
2534 tolua_function(tolua_S,
"datasize",tolua_fawkesinterface_fawkes_Interface_datasize00);
2535 tolua_function(tolua_S,
"type",tolua_fawkesinterface_fawkes_Interface_type00);
2536 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_Interface_id00);
2537 tolua_function(tolua_S,
"uid",tolua_fawkesinterface_fawkes_Interface_uid00);
2538 tolua_function(tolua_S,
"serial",tolua_fawkesinterface_fawkes_Interface_serial00);
2539 tolua_function(tolua_S,
"mem_serial",tolua_fawkesinterface_fawkes_Interface_mem_serial00);
2540 tolua_function(tolua_S,
".eq",tolua_fawkesinterface_fawkes_Interface__eq00);
2541 tolua_function(tolua_S,
"hash",tolua_fawkesinterface_fawkes_Interface_hash00);
2542 tolua_function(tolua_S,
"hash_size",tolua_fawkesinterface_fawkes_Interface_hash_size00);
2543 tolua_function(tolua_S,
"hash_printable",tolua_fawkesinterface_fawkes_Interface_hash_printable00);
2544 tolua_function(tolua_S,
"is_writer",tolua_fawkesinterface_fawkes_Interface_is_writer00);
2545 tolua_function(tolua_S,
"set_from_chunk",tolua_fawkesinterface_fawkes_Interface_set_from_chunk00);
2546 tolua_function(tolua_S,
"create_message_generic",tolua_fawkesinterface_fawkes_Interface_create_message_generic00);
2547 tolua_function(tolua_S,
"read",tolua_fawkesinterface_fawkes_Interface_read00);
2548 tolua_function(tolua_S,
"write",tolua_fawkesinterface_fawkes_Interface_write00);
2549 tolua_function(tolua_S,
"has_writer",tolua_fawkesinterface_fawkes_Interface_has_writer00);
2550 tolua_function(tolua_S,
"num_readers",tolua_fawkesinterface_fawkes_Interface_num_readers00);
2551 tolua_function(tolua_S,
"changed",tolua_fawkesinterface_fawkes_Interface_changed00);
2552 tolua_function(tolua_S,
"timestamp",tolua_fawkesinterface_fawkes_Interface_timestamp00);
2553 tolua_function(tolua_S,
"set_auto_timestamping",tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00);
2554 tolua_function(tolua_S,
"set_timestamp",tolua_fawkesinterface_fawkes_Interface_set_timestamp00);
2555 tolua_function(tolua_S,
"set_clock",tolua_fawkesinterface_fawkes_Interface_set_clock00);
2556 tolua_function(tolua_S,
"msgq_enqueue_copy",tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00);
2557 tolua_function(tolua_S,
"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove00);
2558 tolua_function(tolua_S,
"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove01);
2559 tolua_function(tolua_S,
"msgq_size",tolua_fawkesinterface_fawkes_Interface_msgq_size00);
2560 tolua_function(tolua_S,
"msgq_flush",tolua_fawkesinterface_fawkes_Interface_msgq_flush00);
2561 tolua_function(tolua_S,
"msgq_lock",tolua_fawkesinterface_fawkes_Interface_msgq_lock00);
2562 tolua_function(tolua_S,
"msgq_try_lock",tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00);
2563 tolua_function(tolua_S,
"msgq_unlock",tolua_fawkesinterface_fawkes_Interface_msgq_unlock00);
2564 tolua_function(tolua_S,
"msgq_pop",tolua_fawkesinterface_fawkes_Interface_msgq_pop00);
2565 tolua_function(tolua_S,
"msgq_first_generic",tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00);
2566 tolua_function(tolua_S,
"msgq_empty",tolua_fawkesinterface_fawkes_Interface_msgq_empty00);
2567 tolua_endmodule(tolua_S);
2570 int top = lua_gettop(tolua_S);
2571 static unsigned char B[] = {
2572 10,102,117,110, 99,116,105,111,110, 32,102, 97,119,107,101,
2573 115, 46, 73,110,116,101,114,102, 97, 99,101, 58,109,115,103,
2574 113, 95,102,105,114,115,116, 40, 41, 10,108,111, 99, 97,108,
2575 32,109,101,115,115, 97,103,101, 32, 61, 32,115,101,108,102,
2576 58,109,115,103,113, 95,102,105,114,115,116, 95,103,101,110,
2577 101,114,105, 99, 40, 41, 10,108,111, 99, 97,108, 32,109, 32,
2578 61, 32,116,111,108,117, 97, 46, 99, 97,115,116, 40,109,101,
2579 115,115, 97,103,101, 44, 32, 34,102, 97,119,107,101,115, 58,
2580 58, 34, 32, 46, 46, 32,115,101,108,102, 58,116,121,112,101,
2581 40, 41, 32, 46, 46, 32, 34, 58, 58, 34, 32, 46, 46, 32,109,
2582 101,115,115, 97,103,101, 58,116,121,112,101, 40, 41, 41, 10,
2583 114,101,116,117,114,110, 32,109, 10,101,110,100, 10,102,117,
2584 110, 99,116,105,111,110, 32,102, 97,119,107,101,115, 46, 73,
2585 110,116,101,114,102, 97, 99,101, 58, 99,114,101, 97,116,101,
2586 95,109,101,115,115, 97,103,101, 40,116,121,112,101, 41, 10,
2587 108,111, 99, 97,108, 32,109,101,115,115, 97,103,101, 32, 61,
2588 32,115,101,108,102, 58, 99,114,101, 97,116,101, 95,109,101,
2589 115,115, 97,103,101, 95,103,101,110,101,114,105, 99, 40,116,
2590 121,112,101, 41, 10,114,101,116,117,114,110, 32,116,111,108,
2591 117, 97, 46, 99, 97,115,116, 40,109,101,115,115, 97,103,101,
2592 44, 32, 34,102, 97,119,107,101,115, 58, 58, 34, 32, 46, 46,
2593 32,115,101,108,102, 58,116,121,112,101, 40, 41, 32, 46, 46,
2594 32, 34, 58, 58, 34, 32, 46, 46, 32,109,101,115,115, 97,103,
2595 101, 58,116,121,112,101, 40, 41, 41, 10,101,110,100, 10,102,
2596 117,110, 99,116,105,111,110, 32,102, 97,119,107,101,115, 46,
2597 73,110,116,101,114,102, 97, 99,101, 58,109,115,103,113, 95,
2598 101,110,113,117,101,117,101, 40,109,101,115,115, 97,103,101,
2599 41, 10,114,101,116,117,114,110, 32,115,101,108,102, 58,109,
2600 115,103,113, 95,101,110,113,117,101,117,101, 95, 99,111,112,
2601 121, 40,109,101,115,115, 97,103,101, 41, 10,101,110,100,32
2603 tolua_dobuffer(tolua_S,(
char*)B,
sizeof(B),
"tolua: embedded Lua code 1");
2604 lua_settop(tolua_S, top);
2607 tolua_endmodule(tolua_S);
2608 tolua_module(tolua_S,
"fawkes",0);
2609 tolua_beginmodule(tolua_S,
"fawkes");
2611 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",tolua_collect_fawkes__Message);
2613 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",NULL);
2615 tolua_beginmodule(tolua_S,
"Message");
2616 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new00);
2617 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new00_local);
2618 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new00_local);
2619 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new01);
2620 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new01_local);
2621 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new01_local);
2622 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new02);
2623 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new02_local);
2624 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new02_local);
2625 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_Message_id00);
2626 tolua_function(tolua_S,
"sender_id",tolua_fawkesinterface_fawkes_Message_sender_id00);
2627 tolua_function(tolua_S,
"sender_thread_name",tolua_fawkesinterface_fawkes_Message_sender_thread_name00);
2628 tolua_function(tolua_S,
"interface",tolua_fawkesinterface_fawkes_Message_interface00);
2629 tolua_function(tolua_S,
"type",tolua_fawkesinterface_fawkes_Message_type00);
2630 tolua_function(tolua_S,
"datachunk",tolua_fawkesinterface_fawkes_Message_datachunk00);
2631 tolua_function(tolua_S,
"datasize",tolua_fawkesinterface_fawkes_Message_datasize00);
2632 tolua_function(tolua_S,
"set_from_chunk",tolua_fawkesinterface_fawkes_Message_set_from_chunk00);
2633 tolua_function(tolua_S,
"ref",tolua_fawkesinterface_fawkes_Message_ref00);
2634 tolua_function(tolua_S,
"unref",tolua_fawkesinterface_fawkes_Message_unref00);
2635 tolua_function(tolua_S,
"refcount",tolua_fawkesinterface_fawkes_Message_refcount00);
2636 tolua_endmodule(tolua_S);
2637 tolua_endmodule(tolua_S);
2638 tolua_module(tolua_S,
"fawkes",0);
2639 tolua_beginmodule(tolua_S,
"fawkes");
2641 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",tolua_collect_fawkes__MessageQueue);
2643 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",NULL);
2645 tolua_beginmodule(tolua_S,
"MessageQueue");
2646 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_new00);
2647 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
2648 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
2649 tolua_function(tolua_S,
"delete",tolua_fawkesinterface_fawkes_MessageQueue_delete00);
2651 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",tolua_collect_fawkes__MessageQueue__MessageIterator);
2653 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",NULL);
2655 tolua_beginmodule(tolua_S,
"MessageIterator");
2656 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00);
2657 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
2658 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
2659 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01);
2660 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
2661 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
2662 tolua_function(tolua_S,
".add",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00);
2663 tolua_function(tolua_S,
".eq",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00);
2664 tolua_function(tolua_S,
".mul",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00);
2665 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00);
2666 tolua_endmodule(tolua_S);
2667 tolua_function(tolua_S,
"append",tolua_fawkesinterface_fawkes_MessageQueue_append00);
2668 tolua_function(tolua_S,
"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove00);
2669 tolua_function(tolua_S,
"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove01);
2670 tolua_function(tolua_S,
"insert_after",tolua_fawkesinterface_fawkes_MessageQueue_insert_after00);
2671 tolua_function(tolua_S,
"size",tolua_fawkesinterface_fawkes_MessageQueue_size00);
2672 tolua_function(tolua_S,
"flush",tolua_fawkesinterface_fawkes_MessageQueue_flush00);
2673 tolua_function(tolua_S,
"empty",tolua_fawkesinterface_fawkes_MessageQueue_empty00);
2674 tolua_function(tolua_S,
"lock",tolua_fawkesinterface_fawkes_MessageQueue_lock00);
2675 tolua_function(tolua_S,
"try_lock",tolua_fawkesinterface_fawkes_MessageQueue_try_lock00);
2676 tolua_function(tolua_S,
"unlock",tolua_fawkesinterface_fawkes_MessageQueue_unlock00);
2677 tolua_function(tolua_S,
"first",tolua_fawkesinterface_fawkes_MessageQueue_first00);
2678 tolua_function(tolua_S,
"pop",tolua_fawkesinterface_fawkes_MessageQueue_pop00);
2679 tolua_function(tolua_S,
"begin",tolua_fawkesinterface_fawkes_MessageQueue_begin00);
2680 tolua_function(tolua_S,
"end",tolua_fawkesinterface_fawkes_MessageQueue_end00);
2681 tolua_endmodule(tolua_S);
2682 tolua_endmodule(tolua_S);
2683 tolua_endmodule(tolua_S);
2689 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 2690 TOLUA_API
int luaopen_fawkesinterface (lua_State* tolua_S) {
2691 return tolua_fawkesinterface_open(tolua_S);
const char * sender_thread_name() const
Get sender of message.
Interface * interface() const
Get transmitting interface.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
unsigned int id() const
Get message ID.
unsigned int refcount()
Get reference count for this instance.
This is supposed to be the central clock in Fawkes.
A class for handling time.
Base class for all Fawkes BlackBoard interfaces.
const void * datachunk() const
Get pointer to data.
unsigned int sender_id() const
Get ID of sender.
Message queue used in interfaces.
unsigned int datasize() const
Get size of data.
const char * type() const
Get message type.