mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-12 04:39:23 +00:00
c'est plus beau
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include <string.h>
|
||||
|
||||
GETTER(Visitor, char*, name);
|
||||
GETTER(Visitor, int, destination);
|
||||
GETTER(Visitor, int, id);
|
||||
|
||||
void * runnable_Visitor(void * void_this){
|
||||
@ -46,9 +47,10 @@ Visitor *_init_Visitor(int id, char* name, char * contact_name){
|
||||
new_visitor->contact_name = NULL;
|
||||
|
||||
LINK_ALL(Visitor, new_visitor,
|
||||
get_name,
|
||||
get_id,
|
||||
runnable
|
||||
get_name,
|
||||
get_destination,
|
||||
get_id,
|
||||
runnable
|
||||
);
|
||||
|
||||
return new_visitor;
|
||||
|
@ -17,6 +17,7 @@ typedef struct o_Visitor {
|
||||
PUBLIC void * (*runnable)(void* void_this);
|
||||
PUBLIC char * (*get_name)(_THIS(Visitor));
|
||||
PUBLIC int (*get_id)(_THIS(Visitor));
|
||||
PUBLIC int (*get_destination)(_THIS(Visitor));
|
||||
|
||||
DESTRUCTOR(Visitor);
|
||||
} Visitor;
|
||||
|
Reference in New Issue
Block a user