projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate graphs of broadcasts
[lttv.git]
/
lttv
/
lttv
/
sync
/
data_structures.h
diff --git
a/lttv/lttv/sync/data_structures.h
b/lttv/lttv/sync/data_structures.h
index 1f70ade4877a82ae782bfe4695d16d7375895683..5f5e4be373a5344a6dd7477bc57e1d83343cf54e 100644
(file)
--- a/
lttv/lttv/sync/data_structures.h
+++ b/
lttv/lttv/sync/data_structures.h
@@
-23,8
+23,6
@@
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
-#include <ltt/ltt.h>
-
enum Direction
{
enum Direction
{
@@
-100,6
+98,7
@@
typedef struct _Event
UDPEvent* udpEvent;
} event;
UDPEvent* udpEvent;
} event;
+ void (*copy)(const struct _Event* const event, struct _Event** const newEvent);
void (*destroy)(struct _Event* const event);
} Event;
void (*destroy)(struct _Event* const event);
} Event;
@@
-114,11
+113,13
@@
typedef struct _Message
typedef struct
{
Message* message;
typedef struct
{
Message* message;
+ // Event* acks[]
GQueue* acks;
} Exchange;
typedef struct
{
GQueue* acks;
} Exchange;
typedef struct
{
+ // Event* events[]
GQueue* events;
} Broadcast;
GQueue* events;
} Broadcast;
@@
-149,6
+150,9
@@
void gdnDestroyDatagramKey(gpointer data);
// Event-related functions
void gdnDestroyEvent(gpointer data);
// Event-related functions
void gdnDestroyEvent(gpointer data);
+void copyEvent(const Event* const event, Event** const newEvent);
+void copyTCPEvent(const Event* const event, Event** const newEvent);
+void copyUDPEvent(const Event* const event, Event** const newEvent);
void destroyEvent(Event* const event);
void destroyTCPEvent(Event* const event);
void destroyUDPEvent(Event* const event);
void destroyEvent(Event* const event);
void destroyTCPEvent(Event* const event);
void destroyUDPEvent(Event* const event);
This page took
0.022773 seconds
and
4
git commands to generate.