projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make lttng_directory_handle reference countable
[lttng-tools.git]
/
src
/
common
/
uri.h
diff --git
a/src/common/uri.h
b/src/common/uri.h
index d768e8724670d80759c8002a60b2c4acb81efde8..17b0419181d68dc6c2747555503bdb869f097b56 100644
(file)
--- a/
src/common/uri.h
+++ b/
src/common/uri.h
@@
-20,6
+20,7
@@
#include <netinet/in.h>
#include <lttng/lttng.h>
#include <netinet/in.h>
#include <lttng/lttng.h>
+#include <common/macros.h>
/* Destination type of lttng URI */
enum lttng_dst_type {
/* Destination type of lttng URI */
enum lttng_dst_type {
@@
-65,17
+66,20
@@
struct lttng_uri {
enum lttng_uri_type utype;
enum lttng_stream_type stype;
enum lttng_proto_type proto;
enum lttng_uri_type utype;
enum lttng_stream_type stype;
enum lttng_proto_type proto;
-
in_port
_t port;
- char subdir[PATH_MAX];
+
uint16
_t port;
+ char subdir[
LTTNG_
PATH_MAX];
union {
char ipv4[INET_ADDRSTRLEN];
char ipv6[INET6_ADDRSTRLEN];
union {
char ipv4[INET_ADDRSTRLEN];
char ipv6[INET6_ADDRSTRLEN];
- char path[PATH_MAX];
+ char path[
LTTNG_
PATH_MAX];
} dst;
} dst;
-};
+}
LTTNG_PACKED
;
int uri_compare(struct lttng_uri *uri1, struct lttng_uri *uri2);
void uri_free(struct lttng_uri *uri);
ssize_t uri_parse(const char *str_uri, struct lttng_uri **uris);
int uri_compare(struct lttng_uri *uri1, struct lttng_uri *uri2);
void uri_free(struct lttng_uri *uri);
ssize_t uri_parse(const char *str_uri, struct lttng_uri **uris);
+ssize_t uri_parse_str_urls(const char *ctrl_url, const char *data_url,
+ struct lttng_uri **uris);
+int uri_to_str_url(struct lttng_uri *uri, char *dst, size_t size);
#endif /* _LTT_URI_H */
#endif /* _LTT_URI_H */
This page took
0.024356 seconds
and
4
git commands to generate.