Lines Matching refs:path
30 #define BASE_PATH "/some/path"
35 const char *path = "/org/freedesktop/sssd/infopipe";
38 strip = sbus_opath_strip_prefix(path, prefix);
42 strip = sbus_opath_strip_prefix("/other/path", prefix);
104 char *path;
107 path = sbus_opath_compose(NULL, BASE_PATH, "domname");
108 assert_non_null(path);
109 assert_string_equal(path, BASE_PATH "/domname");
110 talloc_free(path);
115 char *path;
118 path = sbus_opath_compose(NULL, BASE_PATH, "redhat.com", NULL);
119 assert_non_null(path);
120 assert_string_equal(path, BASE_PATH "/redhat_2ecom");
121 talloc_free(path);
153 const char *path = "/object/path/parts";
154 const char *expected[] = {"object", "path", "parts", NULL};
160 ret = sbus_opath_decompose(NULL, path, NULL, &components, &len);
168 const char *path = "/object/path/parts";
175 ret = sbus_opath_decompose(NULL, path, "/object/path", &components, &len);
183 const char *path = "/object/path/parts";
190 ret = sbus_opath_decompose(NULL, path, "/object/path/", &components, &len);
198 const char *path = "/object/path/parts";
203 ret = sbus_opath_decompose(NULL, path, "/wrong/prefix", &components, &len);
209 const char *path = "/object/redhat_2ecom";
216 ret = sbus_opath_decompose(NULL, path, NULL, &components, &len);
224 const char *path = "/object/path/parts";
225 const char *expected[] = {"object", "path", "parts", NULL};
229 ret = sbus_opath_decompose_exact(NULL, path, NULL, 3, &components);
237 const char *path = "/object/path/parts";
241 ret = sbus_opath_decompose_exact(NULL, path, NULL, 2, &components);
247 const char *path = BASE_PATH "/redhat_2ecom";
250 name = sbus_opath_get_object_name(NULL, path, BASE_PATH);
255 name = sbus_opath_get_object_name(NULL, path, BASE_PATH "/");