X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Furi.cpp;h=3b74928b401cc469a9b2dca2f8f205b3746a1d71;hb=f149493493fbd8a3efa4748832c03278c96c38ca;hp=8e663c46a732116b84c9e5c20615c6c018354034;hpb=2d7da3031c65c4569ff2428a7c2cad30007f3b50;p=lttng-tools.git diff --git a/src/common/uri.cpp b/src/common/uri.cpp index 8e663c46a..3b74928b4 100644 --- a/src/common/uri.cpp +++ b/src/common/uri.cpp @@ -25,6 +25,7 @@ enum uri_proto_code { P_NET, P_NET6, P_FILE, P_TCP, P_TCP6, }; +namespace { struct uri_proto { const char *name; const char *leading_string; @@ -34,7 +35,7 @@ struct uri_proto { }; /* Supported protocols */ -static const struct uri_proto proto_uri[] = { +const struct uri_proto proto_uri[] = { { .name = "file", .leading_string = "file://", .code = P_FILE, .type = LTTNG_PROTO_TYPE_NONE, .dtype = LTTNG_DST_PATH }, { .name = "net", .leading_string = "net://", .code = P_NET, .type = LTTNG_TCP, .dtype = LTTNG_DST_IPV4 }, { .name = "net4", .leading_string = "net4://", .code = P_NET, .type = LTTNG_TCP, .dtype = LTTNG_DST_IPV4 }, @@ -45,6 +46,7 @@ static const struct uri_proto proto_uri[] = { /* Invalid proto marking the end of the array. */ {} }; +} /* namespace */ /* * Return pointer to the character in s matching one of the characters in