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__Uuid (lua_State* tolua_S)
61 static int tolua_collect_fawkes__MessageQueue (lua_State* tolua_S)
68 static int tolua_collect_size_t (lua_State* tolua_S)
70 size_t*
self = (
size_t*) tolua_tousertype(tolua_S,1,0);
78 static void tolua_reg_types (lua_State* tolua_S)
80 tolua_usertype(tolua_S,
"fawkes::Clock");
81 tolua_usertype(tolua_S,
"fawkes::Interface");
82 tolua_usertype(tolua_S,
"RefCount");
83 tolua_usertype(tolua_S,
"size_t");
84 tolua_usertype(tolua_S,
"fawkes::MessageQueue::MessageIterator");
85 tolua_usertype(tolua_S,
"fawkes::Message");
86 tolua_usertype(tolua_S,
"fawkes::MessageQueue");
87 tolua_usertype(tolua_S,
"fawkes::Time");
88 tolua_usertype(tolua_S,
"fawkes::Uuid");
92 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Uuid_get_string00
93 static int tolua_fawkesinterface_fawkes_Uuid_get_string00(lua_State* tolua_S)
96 tolua_Error tolua_err;
98 !tolua_isusertype(tolua_S,1,
"const fawkes::Uuid",0,&tolua_err) ||
99 !tolua_isnoobj(tolua_S,2,&tolua_err)
106 #ifndef TOLUA_RELEASE
107 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'get_string'",NULL);
110 std::string tolua_ret = (std::string) self->get_string();
111 tolua_pushcppstring(tolua_S,(
const char*)tolua_ret);
115 #ifndef TOLUA_RELEASE
117 tolua_error(tolua_S,
"#ferror in function 'get_string'.",&tolua_err);
124 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_oftype00
125 static int tolua_fawkesinterface_fawkes_Interface_oftype00(lua_State* tolua_S)
127 #ifndef TOLUA_RELEASE
128 tolua_Error tolua_err;
130 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
131 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
132 !tolua_isnoobj(tolua_S,3,&tolua_err)
139 const char* interface_type = ((
const char*) tolua_tostring(tolua_S,2,0));
140 #ifndef TOLUA_RELEASE
141 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'oftype'",NULL);
144 bool tolua_ret = (bool) self->oftype(interface_type);
145 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
149 #ifndef TOLUA_RELEASE
151 tolua_error(tolua_S,
"#ferror in function 'oftype'.",&tolua_err);
158 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datachunk00
159 static int tolua_fawkesinterface_fawkes_Interface_datachunk00(lua_State* tolua_S)
161 #ifndef TOLUA_RELEASE
162 tolua_Error tolua_err;
164 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
165 !tolua_isnoobj(tolua_S,2,&tolua_err)
172 #ifndef TOLUA_RELEASE
173 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'",NULL);
176 const void* tolua_ret = (
const void*) self->datachunk();
177 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
181 #ifndef TOLUA_RELEASE
183 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
190 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_datasize00
191 static int tolua_fawkesinterface_fawkes_Interface_datasize00(lua_State* tolua_S)
193 #ifndef TOLUA_RELEASE
194 tolua_Error tolua_err;
196 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
197 !tolua_isnoobj(tolua_S,2,&tolua_err)
204 #ifndef TOLUA_RELEASE
205 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'",NULL);
208 unsigned int tolua_ret = (
unsigned int) self->datasize();
209 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
213 #ifndef TOLUA_RELEASE
215 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
222 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_type00
223 static int tolua_fawkesinterface_fawkes_Interface_type00(lua_State* tolua_S)
225 #ifndef TOLUA_RELEASE
226 tolua_Error tolua_err;
228 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
229 !tolua_isnoobj(tolua_S,2,&tolua_err)
236 #ifndef TOLUA_RELEASE
237 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'",NULL);
240 const char* tolua_ret = (
const char*) self->type();
241 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
245 #ifndef TOLUA_RELEASE
247 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
254 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_id00
255 static int tolua_fawkesinterface_fawkes_Interface_id00(lua_State* tolua_S)
257 #ifndef TOLUA_RELEASE
258 tolua_Error tolua_err;
260 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
261 !tolua_isnoobj(tolua_S,2,&tolua_err)
268 #ifndef TOLUA_RELEASE
269 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
272 const char* tolua_ret = (
const char*) self->id();
273 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
277 #ifndef TOLUA_RELEASE
279 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
286 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_uid00
287 static int tolua_fawkesinterface_fawkes_Interface_uid00(lua_State* tolua_S)
289 #ifndef TOLUA_RELEASE
290 tolua_Error tolua_err;
292 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
293 !tolua_isnoobj(tolua_S,2,&tolua_err)
300 #ifndef TOLUA_RELEASE
301 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'uid'",NULL);
304 const char* tolua_ret = (
const char*) self->uid();
305 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
309 #ifndef TOLUA_RELEASE
311 tolua_error(tolua_S,
"#ferror in function 'uid'.",&tolua_err);
318 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_serial00
319 static int tolua_fawkesinterface_fawkes_Interface_serial00(lua_State* tolua_S)
321 #ifndef TOLUA_RELEASE
322 tolua_Error tolua_err;
324 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
325 !tolua_isnoobj(tolua_S,2,&tolua_err)
332 #ifndef TOLUA_RELEASE
333 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'serial'",NULL);
339 void* tolua_obj = Mtolua_new((
fawkes::Uuid)(tolua_ret));
340 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::Uuid");
341 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
343 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(
fawkes::Uuid));
344 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::Uuid");
345 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
351 #ifndef TOLUA_RELEASE
353 tolua_error(tolua_S,
"#ferror in function 'serial'.",&tolua_err);
360 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_mem_serial00
361 static int tolua_fawkesinterface_fawkes_Interface_mem_serial00(lua_State* tolua_S)
363 #ifndef TOLUA_RELEASE
364 tolua_Error tolua_err;
366 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
367 !tolua_isnoobj(tolua_S,2,&tolua_err)
374 #ifndef TOLUA_RELEASE
375 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'mem_serial'",NULL);
378 unsigned int tolua_ret = (
unsigned int) self->mem_serial();
379 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
383 #ifndef TOLUA_RELEASE
385 tolua_error(tolua_S,
"#ferror in function 'mem_serial'.",&tolua_err);
392 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface__eq00
393 static int tolua_fawkesinterface_fawkes_Interface__eq00(lua_State* tolua_S)
395 #ifndef TOLUA_RELEASE
396 tolua_Error tolua_err;
398 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
399 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Interface",0,&tolua_err)) ||
400 !tolua_isnoobj(tolua_S,3,&tolua_err)
408 #ifndef TOLUA_RELEASE
409 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='",NULL);
412 bool tolua_ret = (bool) self->operator==(*comp);
413 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
417 #ifndef TOLUA_RELEASE
419 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
426 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash00
427 static int tolua_fawkesinterface_fawkes_Interface_hash00(lua_State* tolua_S)
429 #ifndef TOLUA_RELEASE
430 tolua_Error tolua_err;
432 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
433 !tolua_isnoobj(tolua_S,2,&tolua_err)
440 #ifndef TOLUA_RELEASE
441 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash'",NULL);
444 unsigned const char* tolua_ret = (
unsigned const char*) self->hash();
445 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
449 #ifndef TOLUA_RELEASE
451 tolua_error(tolua_S,
"#ferror in function 'hash'.",&tolua_err);
458 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_size00
459 static int tolua_fawkesinterface_fawkes_Interface_hash_size00(lua_State* tolua_S)
461 #ifndef TOLUA_RELEASE
462 tolua_Error tolua_err;
464 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
465 !tolua_isnoobj(tolua_S,2,&tolua_err)
472 #ifndef TOLUA_RELEASE
473 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_size'",NULL);
476 size_t tolua_ret = (size_t) self->hash_size();
479 void* tolua_obj = Mtolua_new((
size_t)(tolua_ret));
480 tolua_pushusertype(tolua_S,tolua_obj,
"size_t");
481 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
483 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(
size_t));
484 tolua_pushusertype(tolua_S,tolua_obj,
"size_t");
485 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
491 #ifndef TOLUA_RELEASE
493 tolua_error(tolua_S,
"#ferror in function 'hash_size'.",&tolua_err);
500 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_hash_printable00
501 static int tolua_fawkesinterface_fawkes_Interface_hash_printable00(lua_State* tolua_S)
503 #ifndef TOLUA_RELEASE
504 tolua_Error tolua_err;
506 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
507 !tolua_isnoobj(tolua_S,2,&tolua_err)
514 #ifndef TOLUA_RELEASE
515 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'hash_printable'",NULL);
518 const char* tolua_ret = (
const char*) self->hash_printable();
519 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
523 #ifndef TOLUA_RELEASE
525 tolua_error(tolua_S,
"#ferror in function 'hash_printable'.",&tolua_err);
532 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_is_writer00
533 static int tolua_fawkesinterface_fawkes_Interface_is_writer00(lua_State* tolua_S)
535 #ifndef TOLUA_RELEASE
536 tolua_Error tolua_err;
538 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
539 !tolua_isnoobj(tolua_S,2,&tolua_err)
546 #ifndef TOLUA_RELEASE
547 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'is_writer'",NULL);
550 bool tolua_ret = (bool) self->is_writer();
551 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
555 #ifndef TOLUA_RELEASE
557 tolua_error(tolua_S,
"#ferror in function 'is_writer'.",&tolua_err);
564 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_from_chunk00
565 static int tolua_fawkesinterface_fawkes_Interface_set_from_chunk00(lua_State* tolua_S)
567 #ifndef TOLUA_RELEASE
568 tolua_Error tolua_err;
570 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
571 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
572 !tolua_isnoobj(tolua_S,3,&tolua_err)
579 void* chunk = ((
void*) tolua_touserdata(tolua_S,2,0));
580 #ifndef TOLUA_RELEASE
581 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_from_chunk'",NULL);
584 self->set_from_chunk(chunk);
588 #ifndef TOLUA_RELEASE
590 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
597 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_create_message_generic00
598 static int tolua_fawkesinterface_fawkes_Interface_create_message_generic00(lua_State* tolua_S)
600 #ifndef TOLUA_RELEASE
601 tolua_Error tolua_err;
603 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
604 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
605 !tolua_isnoobj(tolua_S,3,&tolua_err)
612 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
613 #ifndef TOLUA_RELEASE
614 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'create_message'",NULL);
618 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
622 #ifndef TOLUA_RELEASE
624 tolua_error(tolua_S,
"#ferror in function 'create_message_generic'.",&tolua_err);
631 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_read00
632 static int tolua_fawkesinterface_fawkes_Interface_read00(lua_State* tolua_S)
634 #ifndef TOLUA_RELEASE
635 tolua_Error tolua_err;
637 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
638 !tolua_isnoobj(tolua_S,2,&tolua_err)
645 #ifndef TOLUA_RELEASE
646 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'read'",NULL);
653 #ifndef TOLUA_RELEASE
655 tolua_error(tolua_S,
"#ferror in function 'read'.",&tolua_err);
662 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_write00
663 static int tolua_fawkesinterface_fawkes_Interface_write00(lua_State* tolua_S)
665 #ifndef TOLUA_RELEASE
666 tolua_Error tolua_err;
668 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
669 !tolua_isnoobj(tolua_S,2,&tolua_err)
676 #ifndef TOLUA_RELEASE
677 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'write'",NULL);
684 #ifndef TOLUA_RELEASE
686 tolua_error(tolua_S,
"#ferror in function 'write'.",&tolua_err);
693 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_has_writer00
694 static int tolua_fawkesinterface_fawkes_Interface_has_writer00(lua_State* tolua_S)
696 #ifndef TOLUA_RELEASE
697 tolua_Error tolua_err;
699 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
700 !tolua_isnoobj(tolua_S,2,&tolua_err)
707 #ifndef TOLUA_RELEASE
708 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'has_writer'",NULL);
711 bool tolua_ret = (bool) self->has_writer();
712 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
716 #ifndef TOLUA_RELEASE
718 tolua_error(tolua_S,
"#ferror in function 'has_writer'.",&tolua_err);
725 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_num_readers00
726 static int tolua_fawkesinterface_fawkes_Interface_num_readers00(lua_State* tolua_S)
728 #ifndef TOLUA_RELEASE
729 tolua_Error tolua_err;
731 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
732 !tolua_isnoobj(tolua_S,2,&tolua_err)
739 #ifndef TOLUA_RELEASE
740 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'num_readers'",NULL);
743 unsigned int tolua_ret = (
unsigned int) self->num_readers();
744 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
748 #ifndef TOLUA_RELEASE
750 tolua_error(tolua_S,
"#ferror in function 'num_readers'.",&tolua_err);
757 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_changed00
758 static int tolua_fawkesinterface_fawkes_Interface_changed00(lua_State* tolua_S)
760 #ifndef TOLUA_RELEASE
761 tolua_Error tolua_err;
763 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
764 !tolua_isnoobj(tolua_S,2,&tolua_err)
771 #ifndef TOLUA_RELEASE
772 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'changed'",NULL);
775 bool tolua_ret = (bool) self->changed();
776 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
780 #ifndef TOLUA_RELEASE
782 tolua_error(tolua_S,
"#ferror in function 'changed'.",&tolua_err);
789 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_refreshed00
790 static int tolua_fawkesinterface_fawkes_Interface_refreshed00(lua_State* tolua_S)
792 #ifndef TOLUA_RELEASE
793 tolua_Error tolua_err;
795 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
796 !tolua_isnoobj(tolua_S,2,&tolua_err)
803 #ifndef TOLUA_RELEASE
804 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'refreshed'",NULL);
807 bool tolua_ret = (bool) self->refreshed();
808 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
812 #ifndef TOLUA_RELEASE
814 tolua_error(tolua_S,
"#ferror in function 'refreshed'.",&tolua_err);
821 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_timestamp00
822 static int tolua_fawkesinterface_fawkes_Interface_timestamp00(lua_State* tolua_S)
824 #ifndef TOLUA_RELEASE
825 tolua_Error tolua_err;
827 !tolua_isusertype(tolua_S,1,
"const fawkes::Interface",0,&tolua_err) ||
828 !tolua_isnoobj(tolua_S,2,&tolua_err)
835 #ifndef TOLUA_RELEASE
836 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'timestamp'",NULL);
840 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"const fawkes::Time");
844 #ifndef TOLUA_RELEASE
846 tolua_error(tolua_S,
"#ferror in function 'timestamp'.",&tolua_err);
853 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00
854 static int tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00(lua_State* tolua_S)
856 #ifndef TOLUA_RELEASE
857 tolua_Error tolua_err;
859 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
860 !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
861 !tolua_isnoobj(tolua_S,3,&tolua_err)
868 bool enabled = ((bool) tolua_toboolean(tolua_S,2,0));
869 #ifndef TOLUA_RELEASE
870 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_auto_timestamping'",NULL);
873 self->set_auto_timestamping(enabled);
877 #ifndef TOLUA_RELEASE
879 tolua_error(tolua_S,
"#ferror in function 'set_auto_timestamping'.",&tolua_err);
886 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_timestamp00
887 static int tolua_fawkesinterface_fawkes_Interface_set_timestamp00(lua_State* tolua_S)
889 #ifndef TOLUA_RELEASE
890 tolua_Error tolua_err;
892 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
893 !tolua_isusertype(tolua_S,2,
"const fawkes::Time",0,&tolua_err) ||
894 !tolua_isnoobj(tolua_S,3,&tolua_err)
902 #ifndef TOLUA_RELEASE
903 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_timestamp'",NULL);
906 self->set_timestamp(t);
910 #ifndef TOLUA_RELEASE
912 tolua_error(tolua_S,
"#ferror in function 'set_timestamp'.",&tolua_err);
919 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_set_clock00
920 static int tolua_fawkesinterface_fawkes_Interface_set_clock00(lua_State* tolua_S)
922 #ifndef TOLUA_RELEASE
923 tolua_Error tolua_err;
925 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
926 !tolua_isusertype(tolua_S,2,
"fawkes::Clock",0,&tolua_err) ||
927 !tolua_isnoobj(tolua_S,3,&tolua_err)
935 #ifndef TOLUA_RELEASE
936 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_clock'",NULL);
939 self->set_clock(clock);
943 #ifndef TOLUA_RELEASE
945 tolua_error(tolua_S,
"#ferror in function 'set_clock'.",&tolua_err);
952 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00
953 static int tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00(lua_State* tolua_S)
955 #ifndef TOLUA_RELEASE
956 tolua_Error tolua_err;
958 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
959 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
960 !tolua_isnoobj(tolua_S,3,&tolua_err)
968 #ifndef TOLUA_RELEASE
969 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_enqueue_copy'",NULL);
972 unsigned int tolua_ret = (
unsigned int) self->msgq_enqueue_copy(message);
973 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
977 #ifndef TOLUA_RELEASE
979 tolua_error(tolua_S,
"#ferror in function 'msgq_enqueue_copy'.",&tolua_err);
986 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove00
987 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove00(lua_State* tolua_S)
989 #ifndef TOLUA_RELEASE
990 tolua_Error tolua_err;
992 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
993 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
994 !tolua_isnoobj(tolua_S,3,&tolua_err)
1002 #ifndef TOLUA_RELEASE
1003 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'",NULL);
1006 self->msgq_remove(message);
1010 #ifndef TOLUA_RELEASE
1012 tolua_error(tolua_S,
"#ferror in function 'msgq_remove'.",&tolua_err);
1019 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_remove01
1020 static int tolua_fawkesinterface_fawkes_Interface_msgq_remove01(lua_State* tolua_S)
1022 tolua_Error tolua_err;
1024 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1025 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
1026 !tolua_isnoobj(tolua_S,3,&tolua_err)
1032 unsigned int message_id = ((
unsigned int) tolua_tonumber(tolua_S,2,0));
1033 #ifndef TOLUA_RELEASE
1034 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_remove'",NULL);
1037 self->msgq_remove(message_id);
1042 return tolua_fawkesinterface_fawkes_Interface_msgq_remove00(tolua_S);
1047 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_size00
1048 static int tolua_fawkesinterface_fawkes_Interface_msgq_size00(lua_State* tolua_S)
1050 #ifndef TOLUA_RELEASE
1051 tolua_Error tolua_err;
1053 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1054 !tolua_isnoobj(tolua_S,2,&tolua_err)
1061 #ifndef TOLUA_RELEASE
1062 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_size'",NULL);
1065 unsigned int tolua_ret = (
unsigned int) self->msgq_size();
1066 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1070 #ifndef TOLUA_RELEASE
1072 tolua_error(tolua_S,
"#ferror in function 'msgq_size'.",&tolua_err);
1079 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_flush00
1080 static int tolua_fawkesinterface_fawkes_Interface_msgq_flush00(lua_State* tolua_S)
1082 #ifndef TOLUA_RELEASE
1083 tolua_Error tolua_err;
1085 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1086 !tolua_isnoobj(tolua_S,2,&tolua_err)
1093 #ifndef TOLUA_RELEASE
1094 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_flush'",NULL);
1101 #ifndef TOLUA_RELEASE
1103 tolua_error(tolua_S,
"#ferror in function 'msgq_flush'.",&tolua_err);
1110 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_lock00
1111 static int tolua_fawkesinterface_fawkes_Interface_msgq_lock00(lua_State* tolua_S)
1113 #ifndef TOLUA_RELEASE
1114 tolua_Error tolua_err;
1116 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1117 !tolua_isnoobj(tolua_S,2,&tolua_err)
1124 #ifndef TOLUA_RELEASE
1125 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_lock'",NULL);
1132 #ifndef TOLUA_RELEASE
1134 tolua_error(tolua_S,
"#ferror in function 'msgq_lock'.",&tolua_err);
1141 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00
1142 static int tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00(lua_State* tolua_S)
1144 #ifndef TOLUA_RELEASE
1145 tolua_Error tolua_err;
1147 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1148 !tolua_isnoobj(tolua_S,2,&tolua_err)
1155 #ifndef TOLUA_RELEASE
1156 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_try_lock'",NULL);
1159 bool tolua_ret = (bool) self->msgq_try_lock();
1160 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1164 #ifndef TOLUA_RELEASE
1166 tolua_error(tolua_S,
"#ferror in function 'msgq_try_lock'.",&tolua_err);
1173 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_unlock00
1174 static int tolua_fawkesinterface_fawkes_Interface_msgq_unlock00(lua_State* tolua_S)
1176 #ifndef TOLUA_RELEASE
1177 tolua_Error tolua_err;
1179 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1180 !tolua_isnoobj(tolua_S,2,&tolua_err)
1187 #ifndef TOLUA_RELEASE
1188 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_unlock'",NULL);
1191 self->msgq_unlock();
1195 #ifndef TOLUA_RELEASE
1197 tolua_error(tolua_S,
"#ferror in function 'msgq_unlock'.",&tolua_err);
1204 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_pop00
1205 static int tolua_fawkesinterface_fawkes_Interface_msgq_pop00(lua_State* tolua_S)
1207 #ifndef TOLUA_RELEASE
1208 tolua_Error tolua_err;
1210 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1211 !tolua_isnoobj(tolua_S,2,&tolua_err)
1218 #ifndef TOLUA_RELEASE
1219 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_pop'",NULL);
1226 #ifndef TOLUA_RELEASE
1228 tolua_error(tolua_S,
"#ferror in function 'msgq_pop'.",&tolua_err);
1235 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00
1236 static int tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00(lua_State* tolua_S)
1238 #ifndef TOLUA_RELEASE
1239 tolua_Error tolua_err;
1241 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1242 !tolua_isnoobj(tolua_S,2,&tolua_err)
1249 #ifndef TOLUA_RELEASE
1250 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_first'",NULL);
1254 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1258 #ifndef TOLUA_RELEASE
1260 tolua_error(tolua_S,
"#ferror in function 'msgq_first_generic'.",&tolua_err);
1267 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Interface_msgq_empty00
1268 static int tolua_fawkesinterface_fawkes_Interface_msgq_empty00(lua_State* tolua_S)
1270 #ifndef TOLUA_RELEASE
1271 tolua_Error tolua_err;
1273 !tolua_isusertype(tolua_S,1,
"fawkes::Interface",0,&tolua_err) ||
1274 !tolua_isnoobj(tolua_S,2,&tolua_err)
1281 #ifndef TOLUA_RELEASE
1282 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'msgq_empty'",NULL);
1285 bool tolua_ret = (bool) self->msgq_empty();
1286 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
1290 #ifndef TOLUA_RELEASE
1292 tolua_error(tolua_S,
"#ferror in function 'msgq_empty'.",&tolua_err);
1299 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00
1300 static int tolua_fawkesinterface_fawkes_Message_new00(lua_State* tolua_S)
1302 #ifndef TOLUA_RELEASE
1303 tolua_Error tolua_err;
1305 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1306 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1307 !tolua_isnoobj(tolua_S,3,&tolua_err)
1313 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1316 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1320 #ifndef TOLUA_RELEASE
1322 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1329 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new00_local
1330 static int tolua_fawkesinterface_fawkes_Message_new00_local(lua_State* tolua_S)
1332 #ifndef TOLUA_RELEASE
1333 tolua_Error tolua_err;
1335 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1336 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
1337 !tolua_isnoobj(tolua_S,3,&tolua_err)
1343 const char* type = ((
const char*) tolua_tostring(tolua_S,2,0));
1346 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1347 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1351 #ifndef TOLUA_RELEASE
1353 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1360 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01
1361 static int tolua_fawkesinterface_fawkes_Message_new01(lua_State* tolua_S)
1363 tolua_Error tolua_err;
1365 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1366 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1367 !tolua_isnoobj(tolua_S,3,&tolua_err)
1375 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1380 return tolua_fawkesinterface_fawkes_Message_new00(tolua_S);
1385 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new01_local
1386 static int tolua_fawkesinterface_fawkes_Message_new01_local(lua_State* tolua_S)
1388 tolua_Error tolua_err;
1390 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1391 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
1392 !tolua_isnoobj(tolua_S,3,&tolua_err)
1400 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1401 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1406 return tolua_fawkesinterface_fawkes_Message_new00_local(tolua_S);
1411 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02
1412 static int tolua_fawkesinterface_fawkes_Message_new02(lua_State* tolua_S)
1414 tolua_Error tolua_err;
1416 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1417 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err)) ||
1418 !tolua_isnoobj(tolua_S,3,&tolua_err)
1426 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1431 return tolua_fawkesinterface_fawkes_Message_new01(tolua_S);
1436 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_new02_local
1437 static int tolua_fawkesinterface_fawkes_Message_new02_local(lua_State* tolua_S)
1439 tolua_Error tolua_err;
1441 !tolua_isusertable(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1442 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err)) ||
1443 !tolua_isnoobj(tolua_S,3,&tolua_err)
1451 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
1452 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1457 return tolua_fawkesinterface_fawkes_Message_new01_local(tolua_S);
1462 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_id00
1463 static int tolua_fawkesinterface_fawkes_Message_id00(lua_State* tolua_S)
1465 #ifndef TOLUA_RELEASE
1466 tolua_Error tolua_err;
1468 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1469 !tolua_isnoobj(tolua_S,2,&tolua_err)
1476 #ifndef TOLUA_RELEASE
1477 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
1480 unsigned int tolua_ret = (
unsigned int) self->
id();
1481 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1485 #ifndef TOLUA_RELEASE
1487 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
1494 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_id00
1495 static int tolua_fawkesinterface_fawkes_Message_sender_id00(lua_State* tolua_S)
1497 #ifndef TOLUA_RELEASE
1498 tolua_Error tolua_err;
1500 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1501 !tolua_isnoobj(tolua_S,2,&tolua_err)
1508 #ifndef TOLUA_RELEASE
1509 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_id'",NULL);
1515 void* tolua_obj = Mtolua_new((
fawkes::Uuid)(tolua_ret));
1516 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::Uuid");
1517 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1519 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(
fawkes::Uuid));
1520 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::Uuid");
1521 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1527 #ifndef TOLUA_RELEASE
1529 tolua_error(tolua_S,
"#ferror in function 'sender_id'.",&tolua_err);
1536 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_source_id00
1537 static int tolua_fawkesinterface_fawkes_Message_source_id00(lua_State* tolua_S)
1539 #ifndef TOLUA_RELEASE
1540 tolua_Error tolua_err;
1542 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1543 !tolua_isnoobj(tolua_S,2,&tolua_err)
1550 #ifndef TOLUA_RELEASE
1551 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'source_id'",NULL);
1557 void* tolua_obj = Mtolua_new((
fawkes::Uuid)(tolua_ret));
1558 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::Uuid");
1559 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1561 void* tolua_obj = tolua_copy(tolua_S,(
void*)&tolua_ret,
sizeof(
fawkes::Uuid));
1562 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::Uuid");
1563 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1569 #ifndef TOLUA_RELEASE
1571 tolua_error(tolua_S,
"#ferror in function 'source_id'.",&tolua_err);
1578 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_sender_thread_name00
1579 static int tolua_fawkesinterface_fawkes_Message_sender_thread_name00(lua_State* tolua_S)
1581 #ifndef TOLUA_RELEASE
1582 tolua_Error tolua_err;
1584 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1585 !tolua_isnoobj(tolua_S,2,&tolua_err)
1592 #ifndef TOLUA_RELEASE
1593 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'sender_thread_name'",NULL);
1596 const char* tolua_ret = (
const char*) self->sender_thread_name();
1597 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1601 #ifndef TOLUA_RELEASE
1603 tolua_error(tolua_S,
"#ferror in function 'sender_thread_name'.",&tolua_err);
1610 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_interface00
1611 static int tolua_fawkesinterface_fawkes_Message_interface00(lua_State* tolua_S)
1613 #ifndef TOLUA_RELEASE
1614 tolua_Error tolua_err;
1616 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1617 !tolua_isnoobj(tolua_S,2,&tolua_err)
1624 #ifndef TOLUA_RELEASE
1625 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'interface'",NULL);
1629 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Interface");
1633 #ifndef TOLUA_RELEASE
1635 tolua_error(tolua_S,
"#ferror in function 'interface'.",&tolua_err);
1642 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_type00
1643 static int tolua_fawkesinterface_fawkes_Message_type00(lua_State* tolua_S)
1645 #ifndef TOLUA_RELEASE
1646 tolua_Error tolua_err;
1648 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1649 !tolua_isnoobj(tolua_S,2,&tolua_err)
1656 #ifndef TOLUA_RELEASE
1657 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'type'",NULL);
1660 const char* tolua_ret = (
const char*) self->type();
1661 tolua_pushstring(tolua_S,(
const char*)tolua_ret);
1665 #ifndef TOLUA_RELEASE
1667 tolua_error(tolua_S,
"#ferror in function 'type'.",&tolua_err);
1674 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datachunk00
1675 static int tolua_fawkesinterface_fawkes_Message_datachunk00(lua_State* tolua_S)
1677 #ifndef TOLUA_RELEASE
1678 tolua_Error tolua_err;
1680 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1681 !tolua_isnoobj(tolua_S,2,&tolua_err)
1688 #ifndef TOLUA_RELEASE
1689 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datachunk'",NULL);
1692 const void* tolua_ret = (
const void*) self->datachunk();
1693 tolua_pushuserdata(tolua_S,(
void*)tolua_ret);
1697 #ifndef TOLUA_RELEASE
1699 tolua_error(tolua_S,
"#ferror in function 'datachunk'.",&tolua_err);
1706 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_datasize00
1707 static int tolua_fawkesinterface_fawkes_Message_datasize00(lua_State* tolua_S)
1709 #ifndef TOLUA_RELEASE
1710 tolua_Error tolua_err;
1712 !tolua_isusertype(tolua_S,1,
"const fawkes::Message",0,&tolua_err) ||
1713 !tolua_isnoobj(tolua_S,2,&tolua_err)
1720 #ifndef TOLUA_RELEASE
1721 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'datasize'",NULL);
1724 unsigned int tolua_ret = (
unsigned int) self->datasize();
1725 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1729 #ifndef TOLUA_RELEASE
1731 tolua_error(tolua_S,
"#ferror in function 'datasize'.",&tolua_err);
1738 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_set_from_chunk00
1739 static int tolua_fawkesinterface_fawkes_Message_set_from_chunk00(lua_State* tolua_S)
1741 #ifndef TOLUA_RELEASE
1742 tolua_Error tolua_err;
1744 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1745 !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
1746 !tolua_isnoobj(tolua_S,3,&tolua_err)
1753 const void* chunk = ((
const void*) tolua_touserdata(tolua_S,2,0));
1754 #ifndef TOLUA_RELEASE
1755 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'set_from_chunk'",NULL);
1758 self->set_from_chunk(chunk);
1762 #ifndef TOLUA_RELEASE
1764 tolua_error(tolua_S,
"#ferror in function 'set_from_chunk'.",&tolua_err);
1771 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_ref00
1772 static int tolua_fawkesinterface_fawkes_Message_ref00(lua_State* tolua_S)
1774 #ifndef TOLUA_RELEASE
1775 tolua_Error tolua_err;
1777 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1778 !tolua_isnoobj(tolua_S,2,&tolua_err)
1785 #ifndef TOLUA_RELEASE
1786 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'ref'",NULL);
1793 #ifndef TOLUA_RELEASE
1795 tolua_error(tolua_S,
"#ferror in function 'ref'.",&tolua_err);
1802 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_unref00
1803 static int tolua_fawkesinterface_fawkes_Message_unref00(lua_State* tolua_S)
1805 #ifndef TOLUA_RELEASE
1806 tolua_Error tolua_err;
1808 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1809 !tolua_isnoobj(tolua_S,2,&tolua_err)
1816 #ifndef TOLUA_RELEASE
1817 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unref'",NULL);
1824 #ifndef TOLUA_RELEASE
1826 tolua_error(tolua_S,
"#ferror in function 'unref'.",&tolua_err);
1833 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_Message_refcount00
1834 static int tolua_fawkesinterface_fawkes_Message_refcount00(lua_State* tolua_S)
1836 #ifndef TOLUA_RELEASE
1837 tolua_Error tolua_err;
1839 !tolua_isusertype(tolua_S,1,
"fawkes::Message",0,&tolua_err) ||
1840 !tolua_isnoobj(tolua_S,2,&tolua_err)
1847 #ifndef TOLUA_RELEASE
1848 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'refcount'",NULL);
1851 unsigned int tolua_ret = (
unsigned int) self->refcount();
1852 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
1856 #ifndef TOLUA_RELEASE
1858 tolua_error(tolua_S,
"#ferror in function 'refcount'.",&tolua_err);
1865 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00
1866 static int tolua_fawkesinterface_fawkes_MessageQueue_new00(lua_State* tolua_S)
1868 #ifndef TOLUA_RELEASE
1869 tolua_Error tolua_err;
1871 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1872 !tolua_isnoobj(tolua_S,2,&tolua_err)
1880 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
1884 #ifndef TOLUA_RELEASE
1886 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1893 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_new00_local
1894 static int tolua_fawkesinterface_fawkes_MessageQueue_new00_local(lua_State* tolua_S)
1896 #ifndef TOLUA_RELEASE
1897 tolua_Error tolua_err;
1899 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1900 !tolua_isnoobj(tolua_S,2,&tolua_err)
1908 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue");
1909 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1913 #ifndef TOLUA_RELEASE
1915 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1922 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_delete00
1923 static int tolua_fawkesinterface_fawkes_MessageQueue_delete00(lua_State* tolua_S)
1925 #ifndef TOLUA_RELEASE
1926 tolua_Error tolua_err;
1928 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
1929 !tolua_isnoobj(tolua_S,2,&tolua_err)
1936 #ifndef TOLUA_RELEASE
1937 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'delete'",NULL);
1939 Mtolua_delete(
self);
1942 #ifndef TOLUA_RELEASE
1944 tolua_error(tolua_S,
"#ferror in function 'delete'.",&tolua_err);
1951 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00
1952 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(lua_State* tolua_S)
1954 #ifndef TOLUA_RELEASE
1955 tolua_Error tolua_err;
1957 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1958 !tolua_isnoobj(tolua_S,2,&tolua_err)
1966 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1970 #ifndef TOLUA_RELEASE
1972 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
1979 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local
1980 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(lua_State* tolua_S)
1982 #ifndef TOLUA_RELEASE
1983 tolua_Error tolua_err;
1985 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
1986 !tolua_isnoobj(tolua_S,2,&tolua_err)
1994 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
1995 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1999 #ifndef TOLUA_RELEASE
2001 tolua_error(tolua_S,
"#ferror in function 'new'.",&tolua_err);
2008 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01
2009 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01(lua_State* tolua_S)
2011 tolua_Error tolua_err;
2013 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2014 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2015 !tolua_isnoobj(tolua_S,3,&tolua_err)
2023 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2028 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00(tolua_S);
2033 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local
2034 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local(lua_State* tolua_S)
2036 tolua_Error tolua_err;
2038 !tolua_isusertable(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2039 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2040 !tolua_isnoobj(tolua_S,3,&tolua_err)
2048 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2049 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2054 return tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local(tolua_S);
2059 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00
2060 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00(lua_State* tolua_S)
2062 #ifndef TOLUA_RELEASE
2063 tolua_Error tolua_err;
2065 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2066 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2067 !tolua_isnoobj(tolua_S,3,&tolua_err)
2074 unsigned int i = ((
unsigned int) tolua_tonumber(tolua_S,2,0));
2075 #ifndef TOLUA_RELEASE
2076 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator+'",NULL);
2080 tolua_pushusertype(tolua_S,(
void*)&tolua_ret,
"fawkes::MessageQueue::MessageIterator");
2084 #ifndef TOLUA_RELEASE
2086 tolua_error(tolua_S,
"#ferror in function '.add'.",&tolua_err);
2093 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00
2094 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00(lua_State* tolua_S)
2096 #ifndef TOLUA_RELEASE
2097 tolua_Error tolua_err;
2099 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2100 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2101 !tolua_isnoobj(tolua_S,3,&tolua_err)
2109 #ifndef TOLUA_RELEASE
2110 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator=='",NULL);
2113 bool tolua_ret = (bool) self->operator==(*c);
2114 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2118 #ifndef TOLUA_RELEASE
2120 tolua_error(tolua_S,
"#ferror in function '.eq'.",&tolua_err);
2127 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00
2128 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00(lua_State* tolua_S)
2130 #ifndef TOLUA_RELEASE
2131 tolua_Error tolua_err;
2133 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2134 !tolua_isnoobj(tolua_S,2,&tolua_err)
2141 #ifndef TOLUA_RELEASE
2142 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'operator*'",NULL);
2146 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
2150 #ifndef TOLUA_RELEASE
2152 tolua_error(tolua_S,
"#ferror in function '.mul'.",&tolua_err);
2159 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00
2160 static int tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00(lua_State* tolua_S)
2162 #ifndef TOLUA_RELEASE
2163 tolua_Error tolua_err;
2165 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err) ||
2166 !tolua_isnoobj(tolua_S,2,&tolua_err)
2173 #ifndef TOLUA_RELEASE
2174 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'id'",NULL);
2177 unsigned int tolua_ret = (
unsigned int) self->
id();
2178 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2182 #ifndef TOLUA_RELEASE
2184 tolua_error(tolua_S,
"#ferror in function 'id'.",&tolua_err);
2191 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_append00
2192 static int tolua_fawkesinterface_fawkes_MessageQueue_append00(lua_State* tolua_S)
2194 #ifndef TOLUA_RELEASE
2195 tolua_Error tolua_err;
2197 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2198 !tolua_isusertype(tolua_S,2,
"fawkes::Message",0,&tolua_err) ||
2199 !tolua_isnoobj(tolua_S,3,&tolua_err)
2207 #ifndef TOLUA_RELEASE
2208 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'append'",NULL);
2215 #ifndef TOLUA_RELEASE
2217 tolua_error(tolua_S,
"#ferror in function 'append'.",&tolua_err);
2224 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove00
2225 static int tolua_fawkesinterface_fawkes_MessageQueue_remove00(lua_State* tolua_S)
2227 #ifndef TOLUA_RELEASE
2228 tolua_Error tolua_err;
2230 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2231 !tolua_isusertype(tolua_S,2,
"const fawkes::Message",0,&tolua_err) ||
2232 !tolua_isnoobj(tolua_S,3,&tolua_err)
2240 #ifndef TOLUA_RELEASE
2241 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'",NULL);
2248 #ifndef TOLUA_RELEASE
2250 tolua_error(tolua_S,
"#ferror in function 'remove'.",&tolua_err);
2257 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_remove01
2258 static int tolua_fawkesinterface_fawkes_MessageQueue_remove01(lua_State* tolua_S)
2260 tolua_Error tolua_err;
2262 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2263 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
2264 !tolua_isnoobj(tolua_S,3,&tolua_err)
2270 unsigned const int msg_id = ((
unsigned const int) tolua_tonumber(tolua_S,2,0));
2271 #ifndef TOLUA_RELEASE
2272 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'remove'",NULL);
2275 self->remove(msg_id);
2280 return tolua_fawkesinterface_fawkes_MessageQueue_remove00(tolua_S);
2285 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_insert_after00
2286 static int tolua_fawkesinterface_fawkes_MessageQueue_insert_after00(lua_State* tolua_S)
2288 #ifndef TOLUA_RELEASE
2289 tolua_Error tolua_err;
2291 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2292 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,
"const fawkes::MessageQueue::MessageIterator",0,&tolua_err)) ||
2293 !tolua_isusertype(tolua_S,3,
"fawkes::Message",0,&tolua_err) ||
2294 !tolua_isnoobj(tolua_S,4,&tolua_err)
2303 #ifndef TOLUA_RELEASE
2304 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'insert_after'",NULL);
2307 self->insert_after(*it,msg);
2311 #ifndef TOLUA_RELEASE
2313 tolua_error(tolua_S,
"#ferror in function 'insert_after'.",&tolua_err);
2320 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_size00
2321 static int tolua_fawkesinterface_fawkes_MessageQueue_size00(lua_State* tolua_S)
2323 #ifndef TOLUA_RELEASE
2324 tolua_Error tolua_err;
2326 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
2327 !tolua_isnoobj(tolua_S,2,&tolua_err)
2334 #ifndef TOLUA_RELEASE
2335 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'size'",NULL);
2338 unsigned int tolua_ret = (
unsigned int) self->size();
2339 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
2343 #ifndef TOLUA_RELEASE
2345 tolua_error(tolua_S,
"#ferror in function 'size'.",&tolua_err);
2352 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_flush00
2353 static int tolua_fawkesinterface_fawkes_MessageQueue_flush00(lua_State* tolua_S)
2355 #ifndef TOLUA_RELEASE
2356 tolua_Error tolua_err;
2358 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2359 !tolua_isnoobj(tolua_S,2,&tolua_err)
2366 #ifndef TOLUA_RELEASE
2367 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'flush'",NULL);
2374 #ifndef TOLUA_RELEASE
2376 tolua_error(tolua_S,
"#ferror in function 'flush'.",&tolua_err);
2383 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_empty00
2384 static int tolua_fawkesinterface_fawkes_MessageQueue_empty00(lua_State* tolua_S)
2386 #ifndef TOLUA_RELEASE
2387 tolua_Error tolua_err;
2389 !tolua_isusertype(tolua_S,1,
"const fawkes::MessageQueue",0,&tolua_err) ||
2390 !tolua_isnoobj(tolua_S,2,&tolua_err)
2397 #ifndef TOLUA_RELEASE
2398 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'empty'",NULL);
2401 bool tolua_ret = (bool) self->empty();
2402 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2406 #ifndef TOLUA_RELEASE
2408 tolua_error(tolua_S,
"#ferror in function 'empty'.",&tolua_err);
2415 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_lock00
2416 static int tolua_fawkesinterface_fawkes_MessageQueue_lock00(lua_State* tolua_S)
2418 #ifndef TOLUA_RELEASE
2419 tolua_Error tolua_err;
2421 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2422 !tolua_isnoobj(tolua_S,2,&tolua_err)
2429 #ifndef TOLUA_RELEASE
2430 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'lock'",NULL);
2437 #ifndef TOLUA_RELEASE
2439 tolua_error(tolua_S,
"#ferror in function 'lock'.",&tolua_err);
2446 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_try_lock00
2447 static int tolua_fawkesinterface_fawkes_MessageQueue_try_lock00(lua_State* tolua_S)
2449 #ifndef TOLUA_RELEASE
2450 tolua_Error tolua_err;
2452 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2453 !tolua_isnoobj(tolua_S,2,&tolua_err)
2460 #ifndef TOLUA_RELEASE
2461 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'try_lock'",NULL);
2464 bool tolua_ret = (bool) self->try_lock();
2465 tolua_pushboolean(tolua_S,(
bool)tolua_ret);
2469 #ifndef TOLUA_RELEASE
2471 tolua_error(tolua_S,
"#ferror in function 'try_lock'.",&tolua_err);
2478 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_unlock00
2479 static int tolua_fawkesinterface_fawkes_MessageQueue_unlock00(lua_State* tolua_S)
2481 #ifndef TOLUA_RELEASE
2482 tolua_Error tolua_err;
2484 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2485 !tolua_isnoobj(tolua_S,2,&tolua_err)
2492 #ifndef TOLUA_RELEASE
2493 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'unlock'",NULL);
2500 #ifndef TOLUA_RELEASE
2502 tolua_error(tolua_S,
"#ferror in function 'unlock'.",&tolua_err);
2509 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_first00
2510 static int tolua_fawkesinterface_fawkes_MessageQueue_first00(lua_State* tolua_S)
2512 #ifndef TOLUA_RELEASE
2513 tolua_Error tolua_err;
2515 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2516 !tolua_isnoobj(tolua_S,2,&tolua_err)
2523 #ifndef TOLUA_RELEASE
2524 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'first'",NULL);
2528 tolua_pushusertype(tolua_S,(
void*)tolua_ret,
"fawkes::Message");
2532 #ifndef TOLUA_RELEASE
2534 tolua_error(tolua_S,
"#ferror in function 'first'.",&tolua_err);
2541 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_pop00
2542 static int tolua_fawkesinterface_fawkes_MessageQueue_pop00(lua_State* tolua_S)
2544 #ifndef TOLUA_RELEASE
2545 tolua_Error tolua_err;
2547 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2548 !tolua_isnoobj(tolua_S,2,&tolua_err)
2555 #ifndef TOLUA_RELEASE
2556 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'pop'",NULL);
2563 #ifndef TOLUA_RELEASE
2565 tolua_error(tolua_S,
"#ferror in function 'pop'.",&tolua_err);
2572 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_begin00
2573 static int tolua_fawkesinterface_fawkes_MessageQueue_begin00(lua_State* tolua_S)
2575 #ifndef TOLUA_RELEASE
2576 tolua_Error tolua_err;
2578 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2579 !tolua_isnoobj(tolua_S,2,&tolua_err)
2586 #ifndef TOLUA_RELEASE
2587 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'begin'",NULL);
2594 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2595 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2598 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2599 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2605 #ifndef TOLUA_RELEASE
2607 tolua_error(tolua_S,
"#ferror in function 'begin'.",&tolua_err);
2614 #ifndef TOLUA_DISABLE_tolua_fawkesinterface_fawkes_MessageQueue_end00
2615 static int tolua_fawkesinterface_fawkes_MessageQueue_end00(lua_State* tolua_S)
2617 #ifndef TOLUA_RELEASE
2618 tolua_Error tolua_err;
2620 !tolua_isusertype(tolua_S,1,
"fawkes::MessageQueue",0,&tolua_err) ||
2621 !tolua_isnoobj(tolua_S,2,&tolua_err)
2628 #ifndef TOLUA_RELEASE
2629 if (!
self) tolua_error(tolua_S,
"invalid 'self' in function 'end'",NULL);
2636 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2637 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2640 tolua_pushusertype(tolua_S,tolua_obj,
"fawkes::MessageQueue::MessageIterator");
2641 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2647 #ifndef TOLUA_RELEASE
2649 tolua_error(tolua_S,
"#ferror in function 'end'.",&tolua_err);
2656 TOLUA_API
int tolua_fawkesinterface_open (lua_State* tolua_S)
2658 tolua_open(tolua_S);
2659 tolua_reg_types(tolua_S);
2660 tolua_module(tolua_S,NULL,0);
2661 tolua_beginmodule(tolua_S,NULL);
2662 tolua_module(tolua_S,
"fawkes",0);
2663 tolua_beginmodule(tolua_S,
"fawkes");
2665 tolua_cclass(tolua_S,
"Uuid",
"fawkes::Uuid",
"",tolua_collect_fawkes__Uuid);
2667 tolua_cclass(tolua_S,
"Uuid",
"fawkes::Uuid",
"",NULL);
2669 tolua_beginmodule(tolua_S,
"Uuid");
2670 tolua_function(tolua_S,
"get_string",tolua_fawkesinterface_fawkes_Uuid_get_string00);
2671 tolua_endmodule(tolua_S);
2672 tolua_cclass(tolua_S,
"Interface",
"fawkes::Interface",
"",NULL);
2673 tolua_beginmodule(tolua_S,
"Interface");
2674 tolua_function(tolua_S,
"oftype",tolua_fawkesinterface_fawkes_Interface_oftype00);
2675 tolua_function(tolua_S,
"datachunk",tolua_fawkesinterface_fawkes_Interface_datachunk00);
2676 tolua_function(tolua_S,
"datasize",tolua_fawkesinterface_fawkes_Interface_datasize00);
2677 tolua_function(tolua_S,
"type",tolua_fawkesinterface_fawkes_Interface_type00);
2678 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_Interface_id00);
2679 tolua_function(tolua_S,
"uid",tolua_fawkesinterface_fawkes_Interface_uid00);
2680 tolua_function(tolua_S,
"serial",tolua_fawkesinterface_fawkes_Interface_serial00);
2681 tolua_function(tolua_S,
"mem_serial",tolua_fawkesinterface_fawkes_Interface_mem_serial00);
2682 tolua_function(tolua_S,
".eq",tolua_fawkesinterface_fawkes_Interface__eq00);
2683 tolua_function(tolua_S,
"hash",tolua_fawkesinterface_fawkes_Interface_hash00);
2684 tolua_function(tolua_S,
"hash_size",tolua_fawkesinterface_fawkes_Interface_hash_size00);
2685 tolua_function(tolua_S,
"hash_printable",tolua_fawkesinterface_fawkes_Interface_hash_printable00);
2686 tolua_function(tolua_S,
"is_writer",tolua_fawkesinterface_fawkes_Interface_is_writer00);
2687 tolua_function(tolua_S,
"set_from_chunk",tolua_fawkesinterface_fawkes_Interface_set_from_chunk00);
2688 tolua_function(tolua_S,
"create_message_generic",tolua_fawkesinterface_fawkes_Interface_create_message_generic00);
2689 tolua_function(tolua_S,
"read",tolua_fawkesinterface_fawkes_Interface_read00);
2690 tolua_function(tolua_S,
"write",tolua_fawkesinterface_fawkes_Interface_write00);
2691 tolua_function(tolua_S,
"has_writer",tolua_fawkesinterface_fawkes_Interface_has_writer00);
2692 tolua_function(tolua_S,
"num_readers",tolua_fawkesinterface_fawkes_Interface_num_readers00);
2693 tolua_function(tolua_S,
"changed",tolua_fawkesinterface_fawkes_Interface_changed00);
2694 tolua_function(tolua_S,
"refreshed",tolua_fawkesinterface_fawkes_Interface_refreshed00);
2695 tolua_function(tolua_S,
"timestamp",tolua_fawkesinterface_fawkes_Interface_timestamp00);
2696 tolua_function(tolua_S,
"set_auto_timestamping",tolua_fawkesinterface_fawkes_Interface_set_auto_timestamping00);
2697 tolua_function(tolua_S,
"set_timestamp",tolua_fawkesinterface_fawkes_Interface_set_timestamp00);
2698 tolua_function(tolua_S,
"set_clock",tolua_fawkesinterface_fawkes_Interface_set_clock00);
2699 tolua_function(tolua_S,
"msgq_enqueue_copy",tolua_fawkesinterface_fawkes_Interface_msgq_enqueue_copy00);
2700 tolua_function(tolua_S,
"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove00);
2701 tolua_function(tolua_S,
"msgq_remove",tolua_fawkesinterface_fawkes_Interface_msgq_remove01);
2702 tolua_function(tolua_S,
"msgq_size",tolua_fawkesinterface_fawkes_Interface_msgq_size00);
2703 tolua_function(tolua_S,
"msgq_flush",tolua_fawkesinterface_fawkes_Interface_msgq_flush00);
2704 tolua_function(tolua_S,
"msgq_lock",tolua_fawkesinterface_fawkes_Interface_msgq_lock00);
2705 tolua_function(tolua_S,
"msgq_try_lock",tolua_fawkesinterface_fawkes_Interface_msgq_try_lock00);
2706 tolua_function(tolua_S,
"msgq_unlock",tolua_fawkesinterface_fawkes_Interface_msgq_unlock00);
2707 tolua_function(tolua_S,
"msgq_pop",tolua_fawkesinterface_fawkes_Interface_msgq_pop00);
2708 tolua_function(tolua_S,
"msgq_first_generic",tolua_fawkesinterface_fawkes_Interface_msgq_first_generic00);
2709 tolua_function(tolua_S,
"msgq_empty",tolua_fawkesinterface_fawkes_Interface_msgq_empty00);
2710 tolua_endmodule(tolua_S);
2713 int top = lua_gettop(tolua_S);
2714 static unsigned char B[] = {
2715 10,102,117,110, 99,116,105,111,110, 32,102, 97,119,107,101,
2716 115, 46, 73,110,116,101,114,102, 97, 99,101, 58,109,115,103,
2717 113, 95,102,105,114,115,116, 40, 41, 10,108,111, 99, 97,108,
2718 32,109,101,115,115, 97,103,101, 32, 61, 32,115,101,108,102,
2719 58,109,115,103,113, 95,102,105,114,115,116, 95,103,101,110,
2720 101,114,105, 99, 40, 41, 10,108,111, 99, 97,108, 32,109, 32,
2721 61, 32,116,111,108,117, 97, 46, 99, 97,115,116, 40,109,101,
2722 115,115, 97,103,101, 44, 32, 34,102, 97,119,107,101,115, 58,
2723 58, 34, 32, 46, 46, 32,115,101,108,102, 58,116,121,112,101,
2724 40, 41, 32, 46, 46, 32, 34, 58, 58, 34, 32, 46, 46, 32,109,
2725 101,115,115, 97,103,101, 58,116,121,112,101, 40, 41, 41, 10,
2726 114,101,116,117,114,110, 32,109, 10,101,110,100, 10,102,117,
2727 110, 99,116,105,111,110, 32,102, 97,119,107,101,115, 46, 73,
2728 110,116,101,114,102, 97, 99,101, 58, 99,114,101, 97,116,101,
2729 95,109,101,115,115, 97,103,101, 40,116,121,112,101, 41, 10,
2730 108,111, 99, 97,108, 32,109,101,115,115, 97,103,101, 32, 61,
2731 32,115,101,108,102, 58, 99,114,101, 97,116,101, 95,109,101,
2732 115,115, 97,103,101, 95,103,101,110,101,114,105, 99, 40,116,
2733 121,112,101, 41, 10,114,101,116,117,114,110, 32,116,111,108,
2734 117, 97, 46, 99, 97,115,116, 40,109,101,115,115, 97,103,101,
2735 44, 32, 34,102, 97,119,107,101,115, 58, 58, 34, 32, 46, 46,
2736 32,115,101,108,102, 58,116,121,112,101, 40, 41, 32, 46, 46,
2737 32, 34, 58, 58, 34, 32, 46, 46, 32,109,101,115,115, 97,103,
2738 101, 58,116,121,112,101, 40, 41, 41, 10,101,110,100, 10,102,
2739 117,110, 99,116,105,111,110, 32,102, 97,119,107,101,115, 46,
2740 73,110,116,101,114,102, 97, 99,101, 58,109,115,103,113, 95,
2741 101,110,113,117,101,117,101, 40,109,101,115,115, 97,103,101,
2742 41, 10,114,101,116,117,114,110, 32,115,101,108,102, 58,109,
2743 115,103,113, 95,101,110,113,117,101,117,101, 95, 99,111,112,
2744 121, 40,109,101,115,115, 97,103,101, 41, 10,101,110,100,32
2746 tolua_dobuffer(tolua_S,(
char*)B,
sizeof(B),
"tolua: embedded Lua code 1");
2747 lua_settop(tolua_S, top);
2750 tolua_endmodule(tolua_S);
2751 tolua_module(tolua_S,
"fawkes",0);
2752 tolua_beginmodule(tolua_S,
"fawkes");
2754 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",tolua_collect_fawkes__Message);
2756 tolua_cclass(tolua_S,
"Message",
"fawkes::Message",
"RefCount",NULL);
2758 tolua_beginmodule(tolua_S,
"Message");
2759 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new00);
2760 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new00_local);
2761 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new00_local);
2762 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new01);
2763 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new01_local);
2764 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new01_local);
2765 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_Message_new02);
2766 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_Message_new02_local);
2767 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_Message_new02_local);
2768 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_Message_id00);
2769 tolua_function(tolua_S,
"sender_id",tolua_fawkesinterface_fawkes_Message_sender_id00);
2770 tolua_function(tolua_S,
"source_id",tolua_fawkesinterface_fawkes_Message_source_id00);
2771 tolua_function(tolua_S,
"sender_thread_name",tolua_fawkesinterface_fawkes_Message_sender_thread_name00);
2772 tolua_function(tolua_S,
"interface",tolua_fawkesinterface_fawkes_Message_interface00);
2773 tolua_function(tolua_S,
"type",tolua_fawkesinterface_fawkes_Message_type00);
2774 tolua_function(tolua_S,
"datachunk",tolua_fawkesinterface_fawkes_Message_datachunk00);
2775 tolua_function(tolua_S,
"datasize",tolua_fawkesinterface_fawkes_Message_datasize00);
2776 tolua_function(tolua_S,
"set_from_chunk",tolua_fawkesinterface_fawkes_Message_set_from_chunk00);
2777 tolua_function(tolua_S,
"ref",tolua_fawkesinterface_fawkes_Message_ref00);
2778 tolua_function(tolua_S,
"unref",tolua_fawkesinterface_fawkes_Message_unref00);
2779 tolua_function(tolua_S,
"refcount",tolua_fawkesinterface_fawkes_Message_refcount00);
2780 tolua_endmodule(tolua_S);
2781 tolua_endmodule(tolua_S);
2782 tolua_module(tolua_S,
"fawkes",0);
2783 tolua_beginmodule(tolua_S,
"fawkes");
2785 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",tolua_collect_fawkes__MessageQueue);
2787 tolua_cclass(tolua_S,
"MessageQueue",
"fawkes::MessageQueue",
"",NULL);
2789 tolua_beginmodule(tolua_S,
"MessageQueue");
2790 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_new00);
2791 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
2792 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_new00_local);
2793 tolua_function(tolua_S,
"delete",tolua_fawkesinterface_fawkes_MessageQueue_delete00);
2795 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",tolua_collect_fawkes__MessageQueue__MessageIterator);
2797 tolua_cclass(tolua_S,
"MessageIterator",
"fawkes::MessageQueue::MessageIterator",
"",NULL);
2799 tolua_beginmodule(tolua_S,
"MessageIterator");
2800 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00);
2801 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
2802 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new00_local);
2803 tolua_function(tolua_S,
"new",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01);
2804 tolua_function(tolua_S,
"new_local",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
2805 tolua_function(tolua_S,
".call",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_new01_local);
2806 tolua_function(tolua_S,
".add",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__add00);
2807 tolua_function(tolua_S,
".eq",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__eq00);
2808 tolua_function(tolua_S,
".mul",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator__mul00);
2809 tolua_function(tolua_S,
"id",tolua_fawkesinterface_fawkes_MessageQueue_MessageIterator_id00);
2810 tolua_endmodule(tolua_S);
2811 tolua_function(tolua_S,
"append",tolua_fawkesinterface_fawkes_MessageQueue_append00);
2812 tolua_function(tolua_S,
"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove00);
2813 tolua_function(tolua_S,
"remove",tolua_fawkesinterface_fawkes_MessageQueue_remove01);
2814 tolua_function(tolua_S,
"insert_after",tolua_fawkesinterface_fawkes_MessageQueue_insert_after00);
2815 tolua_function(tolua_S,
"size",tolua_fawkesinterface_fawkes_MessageQueue_size00);
2816 tolua_function(tolua_S,
"flush",tolua_fawkesinterface_fawkes_MessageQueue_flush00);
2817 tolua_function(tolua_S,
"empty",tolua_fawkesinterface_fawkes_MessageQueue_empty00);
2818 tolua_function(tolua_S,
"lock",tolua_fawkesinterface_fawkes_MessageQueue_lock00);
2819 tolua_function(tolua_S,
"try_lock",tolua_fawkesinterface_fawkes_MessageQueue_try_lock00);
2820 tolua_function(tolua_S,
"unlock",tolua_fawkesinterface_fawkes_MessageQueue_unlock00);
2821 tolua_function(tolua_S,
"first",tolua_fawkesinterface_fawkes_MessageQueue_first00);
2822 tolua_function(tolua_S,
"pop",tolua_fawkesinterface_fawkes_MessageQueue_pop00);
2823 tolua_function(tolua_S,
"begin",tolua_fawkesinterface_fawkes_MessageQueue_begin00);
2824 tolua_function(tolua_S,
"end",tolua_fawkesinterface_fawkes_MessageQueue_end00);
2825 tolua_endmodule(tolua_S);
2826 tolua_endmodule(tolua_S);
2827 tolua_endmodule(tolua_S);
2833 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
2834 TOLUA_API
int luaopen_fawkesinterface (lua_State* tolua_S) {
2835 return tolua_fawkesinterface_open(tolua_S);
This is supposed to be the central clock in Fawkes.
Base class for all Fawkes BlackBoard interfaces.
Message queue used in interfaces.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
Uuid sender_id() const
Get ID of the immediate sender, not necessarily the creator of the message.
unsigned int id() const
Get message ID.
A class for handling time.
A convenience class for universally unique identifiers (UUIDs).