1
0
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:
Aethor
2018-06-20 22:06:45 +02:00
parent f6dc3e5f3a
commit 7315e1595e
8 changed files with 39 additions and 24 deletions

View File

@ -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;

View File

@ -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;