diff options
author | p37sitdu, corvid <devnull@localhost> | 2013-01-12 20:13:36 +0000 |
---|---|---|
committer | p37sitdu, corvid <devnull@localhost> | 2013-01-12 20:13:36 +0000 |
commit | 0f0e7cc54aecab1647bdcd222c84d17275b92313 (patch) | |
tree | 225d4a6128cd2ddbc1f762b0355c986f12c13730 /src/chain.h | |
parent | 69666a2dafc8a00e5029f4b671ed94d5be38e109 (diff) |
clean up struct typedefs
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/chain.h b/src/chain.h index fd86557c..10957dc3 100644 --- a/src/chain.h +++ b/src/chain.h @@ -29,14 +29,12 @@ #define FWD 1 #define BCK 2 - -typedef struct _ChainLink ChainLink; -typedef struct _DataBuf DataBuf; +typedef struct ChainLink ChainLink; typedef void (*ChainFunction_t)(int Op, int Branch, int Dir, ChainLink *Info, void *Data1, void *Data2); /* This is the main data structure for CCC nodes */ -struct _ChainLink { +struct ChainLink { void *LocalKey; int Flags; @@ -51,11 +49,11 @@ struct _ChainLink { }; /* A convenience data structure for passing data chunks between nodes */ -struct _DataBuf { +typedef struct { char *Buf; int Size; int Code; -}; +} DataBuf; |