projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Markers: Namespace cleanup, with API change.
[ust.git]
/
libustcomm
/
ustcomm.h
diff --git
a/libustcomm/ustcomm.h
b/libustcomm/ustcomm.h
index db3811961b2b8481aeed2704cb1333fd95dab0fd..a91c111e8d7d02d1a1e69028f1e31b7f18744324 100644
(file)
--- a/
libustcomm/ustcomm.h
+++ b/
libustcomm/ustcomm.h
@@
-25,7
+25,9
@@
#include <ust/kcompat/kcompat.h>
#define SOCK_DIR "/tmp/ust-app-socks"
#include <ust/kcompat/kcompat.h>
#define SOCK_DIR "/tmp/ust-app-socks"
-#define USER_SOCK_DIR "/tmp/ust-socks-"
+#define USER_TMP_DIR "/tmp"
+#define USER_SOCK_DIR_BASE "ust-socks-"
+#define USER_SOCK_DIR USER_TMP_DIR "/" USER_SOCK_DIR_BASE
struct ustcomm_sock {
struct cds_list_head list;
struct ustcomm_sock {
struct cds_list_head list;
@@
-103,10
+105,10
@@
struct ustcomm_buffer_info {
char data[USTCOMM_DATA_SIZE];
};
char data[USTCOMM_DATA_SIZE];
};
-struct ustcomm_marker_info {
+struct ustcomm_
ust_
marker_info {
char *trace;
char *channel;
char *trace;
char *channel;
- char *marker;
+ char *
ust_
marker;
char data[USTCOMM_DATA_SIZE];
};
char data[USTCOMM_DATA_SIZE];
};
@@
-119,7
+121,7
@@
struct ustcomm_notify_buf_mapped {
};
/* Ensure directory existence, usefull for unix sockets */
};
/* Ensure directory existence, usefull for unix sockets */
-extern int ensure_dir_exists(const char *dir);
+extern int ensure_dir_exists(const char *dir
, mode_t mode
);
/* Create and delete sockets */
extern struct ustcomm_sock * ustcomm_init_sock(int fd, int epoll_fd,
/* Create and delete sockets */
extern struct ustcomm_sock * ustcomm_init_sock(int fd, int epoll_fd,
@@
-200,12
+202,12
@@
extern int ustcomm_pack_buffer_info(struct ustcomm_header *header,
extern int ustcomm_unpack_buffer_info(struct ustcomm_buffer_info *buf_inf);
extern int ustcomm_unpack_buffer_info(struct ustcomm_buffer_info *buf_inf);
-extern int ustcomm_pack_marker_info(struct ustcomm_header *header,
- struct ustcomm_
marker_info *
marker_inf,
+extern int ustcomm_pack_
ust_
marker_info(struct ustcomm_header *header,
+ struct ustcomm_
ust_marker_info *ust_
marker_inf,
const char *trace,
const char *channel,
const char *trace,
const char *channel,
- const char *marker);
+ const char *
ust_
marker);
-extern int ustcomm_unpack_
marker_info(struct ustcomm_marker_info *
marker_inf);
+extern int ustcomm_unpack_
ust_marker_info(struct ustcomm_ust_marker_info *ust_
marker_inf);
#endif /* USTCOMM_H */
#endif /* USTCOMM_H */
This page took
0.023869 seconds
and
4
git commands to generate.