2 * Copyright (C) 2012 David Goulet <dgoulet@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
11 #include <netinet/in.h>
12 #include <lttng/lttng.h>
13 #include <common/macros.h>
15 #if defined(__cplusplus)
19 /* Destination type of lttng URI */
26 /* Type of lttng URI where it is a final destination or a hop */
28 LTTNG_URI_DST
, /* The URI is a final destination */
30 * Hops are not supported yet but planned for a future release.
36 /* Communication stream type of a lttng URI */
37 enum lttng_stream_type
{
43 * Protocol type of a lttng URI. The value 0 indicate that the proto_type field
46 enum lttng_proto_type
{
49 * UDP protocol is not supported for now.
56 * Structure representing an URI supported by lttng.
59 enum lttng_dst_type dtype
;
60 enum lttng_uri_type utype
;
61 enum lttng_stream_type stype
;
62 enum lttng_proto_type proto
;
64 char subdir
[LTTNG_PATH_MAX
];
66 char ipv4
[INET_ADDRSTRLEN
];
67 char ipv6
[INET6_ADDRSTRLEN
];
68 char path
[LTTNG_PATH_MAX
];
72 int uri_compare(struct lttng_uri
*uri1
, struct lttng_uri
*uri2
);
73 void uri_free(struct lttng_uri
*uri
);
74 ssize_t
uri_parse(const char *str_uri
, struct lttng_uri
**uris
);
75 ssize_t
uri_parse_str_urls(const char *ctrl_url
, const char *data_url
,
76 struct lttng_uri
**uris
);
77 int uri_to_str_url(struct lttng_uri
*uri
, char *dst
, size_t size
);
79 #if defined(__cplusplus)
83 #endif /* _LTT_URI_H */
This page took 0.033315 seconds and 4 git commands to generate.