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>
24 /* Destination type of lttng URI */
31 /* Type of lttng URI where it is a final destination or a hop */
33 LTTNG_URI_DST
, /* The URI is a final destination */
35 * Hops are not supported yet but planned for a future release.
41 /* Communication stream type of a lttng URI */
42 enum lttng_stream_type
{
48 * Protocol type of a lttng URI. The value 0 indicate that the proto_type field
51 enum lttng_proto_type
{
54 * UDP protocol is not supported for now.
61 * Structure representing an URI supported by lttng.
64 enum lttng_dst_type dtype
;
65 enum lttng_uri_type utype
;
66 enum lttng_stream_type stype
;
67 enum lttng_proto_type proto
;
69 char subdir
[PATH_MAX
];
71 char ipv4
[INET_ADDRSTRLEN
];
72 char ipv6
[INET6_ADDRSTRLEN
];
77 int uri_compare(struct lttng_uri
*uri1
, struct lttng_uri
*uri2
);
78 void uri_free(struct lttng_uri
*uri
);
79 ssize_t
uri_parse(const char *str_uri
, struct lttng_uri
**uris
);
80 ssize_t
uri_parse_str_urls(const char *ctrl_url
, const char *data_url
,
81 struct lttng_uri
**uris
);
82 int uri_to_str_url(struct lttng_uri
*uri
, char *dst
, size_t size
);
84 #endif /* _LTT_URI_H */
This page took 0.032856 seconds and 5 git commands to generate.