2 * Copyright (C) 2012 - David Goulet <dgoulet@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include <netinet/in.h>
22 #include <lttng/lttng.h>
23 #include <common/macros.h>
25 /* Destination type of lttng URI */
32 /* Type of lttng URI where it is a final destination or a hop */
34 LTTNG_URI_DST
, /* The URI is a final destination */
36 * Hops are not supported yet but planned for a future release.
42 /* Communication stream type of a lttng URI */
43 enum lttng_stream_type
{
49 * Protocol type of a lttng URI. The value 0 indicate that the proto_type field
52 enum lttng_proto_type
{
55 * UDP protocol is not supported for now.
62 * Structure representing an URI supported by lttng.
65 enum lttng_dst_type dtype
;
66 enum lttng_uri_type utype
;
67 enum lttng_stream_type stype
;
68 enum lttng_proto_type proto
;
70 char subdir
[LTTNG_PATH_MAX
];
72 char ipv4
[INET_ADDRSTRLEN
];
73 char ipv6
[INET6_ADDRSTRLEN
];
74 char path
[LTTNG_PATH_MAX
];
78 int uri_compare(struct lttng_uri
*uri1
, struct lttng_uri
*uri2
);
79 void uri_free(struct lttng_uri
*uri
);
80 ssize_t
uri_parse(const char *str_uri
, struct lttng_uri
**uris
);
81 ssize_t
uri_parse_str_urls(const char *ctrl_url
, const char *data_url
,
82 struct lttng_uri
**uris
);
83 int uri_to_str_url(struct lttng_uri
*uri
, char *dst
, size_t size
);
85 #endif /* _LTT_URI_H */
This page took 0.03181 seconds and 4 git commands to generate.