diff options
Diffstat (limited to 'dpid/dpid_common.h')
-rw-r--r-- | dpid/dpid_common.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dpid/dpid_common.h b/dpid/dpid_common.h index 4311a8a8..ed886e19 100644 --- a/dpid/dpid_common.h +++ b/dpid/dpid_common.h @@ -9,9 +9,6 @@ * the next patch */ -#include <stdio.h> -#include <errno.h> -#include <sys/types.h> #include <dirent.h> #include "../dlib/dlib.h" @@ -26,15 +23,18 @@ #define dotDILLO_DPI ".dillo/dpi" #define dotDILLO_DPIDRC ".dillo/dpidrc" +#define dotDILLO_DPID_COMM_KEYS ".dillo/dpid_comm_keys" + #define ERRMSG(CALLER, CALLED, ERR)\ errmsg(CALLER, CALLED, ERR, __FILE__, __LINE__) #define _ERRMSG(CALLER, CALLED, ERR) /*! - * Macro for calling the ckd_write function + * Macros for calling ckd_write and ckd_close functions */ #define CKD_WRITE(fd, msg) ckd_write(fd, msg, __FILE__, __LINE__) +#define CKD_CLOSE(fd) ckd_close(fd, __FILE__, __LINE__) /*! Error codes for dpid */ @@ -57,5 +57,6 @@ void errmsg(char *caller, char *called, int errornum, char *file, int line); int no_dotfiles(const struct dirent *filedat); ssize_t ckd_write(int fd, char *msg, char *file, int line); +ssize_t ckd_close(int fd, char *file, int line); #endif |