Lines Matching defs:prefix

126 	char*				prefix;
187 free((char*)prefix);
191 const char* prefix;
260 status_t _AddDirectory(const char* prefix);
261 status_t _ScanDirectory(char* directoryPath, const char* prefix,
264 const char* prefix, size_t prefixPosition);
892 // the module name must fit the prefix
893 if (strncmp(sBuiltInModules[i]->name, iterator->prefix,
915 if (!strncmp(module->name, iterator->prefix,
978 // check if the prefix matches
985 // the prefix still reaches into the new path part
990 if (strncmp(dirent->d_name, iterator->prefix + passedOffset
1057 if (strncmp(info->name, iterator->prefix, iterator->prefix_length)
1281 const char* prefix = eventSpecifier->GetString("prefix", NULL);
1282 if (prefix == NULL)
1289 moduleListener->prefix = strdup(prefix);
1290 if (moduleListener->prefix == NULL) {
1295 status_t status = _AddDirectory(prefix);
1429 ModuleNotificationService::_AddDirectory(const char* prefix)
1444 pathBuffer.Append(prefix);
1446 size_t prefixPosition = strlen(prefix);
1447 status_t scanStatus = _ScanDirectory(pathBuffer.LockBuffer(), prefix,
1463 const char* prefix, size_t& prefixPosition)
1471 // the full prefix is not accessible, remove path components
1472 const char* parentPrefix = prefix + prefixPosition - 1;
1473 while (parentPrefix != prefix && parentPrefix[0] != '/')
1476 size_t cutPosition = parentPrefix - prefix;
1489 status_t status = _ScanDirectory(stack, dir, prefix, prefixPosition);
1500 const char* prefix, size_t prefixPosition)
1511 if (prefix[prefixPosition] != '\0') {
1513 const char* startPrefix = prefix + prefixPosition;
1628 // find listeners by prefix/path
1634 if (strncmp(path, listener->prefix, strlen(listener->prefix)))
1648 _AddDirectory(listener->prefix);
1757 start_watching_modules(const char* prefix, NotificationListener& listener)
1760 status_t status = specifier.AddString("prefix", prefix);
1769 stop_watching_modules(const char* prefix, NotificationListener& listener)
1772 status_t status = specifier.AddString("prefix", prefix);
1963 a given prefix that adhere to the specified suffix.
1965 contain all modules available under the prefix.
1970 open_module_list_etc(const char* prefix, const char* suffix)
1972 TRACE(("open_module_list(prefix = %s)\n", prefix));
1986 iterator->prefix = strdup(prefix != NULL ? prefix : "");
1987 if (iterator->prefix == NULL) {
1991 iterator->prefix_length = strlen(iterator->prefix);
2025 // version below, but the iterator won't work if the prefix
2029 // Build path component: base path + '/' + prefix
2040 memcpy(path + length + 1, iterator->prefix,
2057 open_module_list(const char* prefix)
2059 return open_module_list_etc(prefix, NULL);
2090 free(iterator->prefix);