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);
890 // the module name must fit the prefix
891 if (strncmp(sBuiltInModules[i]->name, iterator->prefix,
912 if (!strncmp(module->name, iterator->prefix,
969 // check if the prefix matches
976 // the prefix still reaches into the new path part
981 if (strncmp(dirent->d_name, iterator->prefix + passedOffset
1048 if (strncmp(info->name, iterator->prefix, iterator->prefix_length)
1270 const char* prefix = eventSpecifier->GetString("prefix", NULL);
1271 if (prefix == NULL)
1278 moduleListener->prefix = strdup(prefix);
1279 if (moduleListener->prefix == NULL) {
1284 status_t status = _AddDirectory(prefix);
1418 ModuleNotificationService::_AddDirectory(const char* prefix)
1433 pathBuffer.Append(prefix);
1435 size_t prefixPosition = strlen(prefix);
1436 status_t scanStatus = _ScanDirectory(pathBuffer.LockBuffer(), prefix,
1452 const char* prefix, size_t& prefixPosition)
1460 // the full prefix is not accessible, remove path components
1461 const char* parentPrefix = prefix + prefixPosition - 1;
1462 while (parentPrefix != prefix && parentPrefix[0] != '/')
1465 size_t cutPosition = parentPrefix - prefix;
1478 status_t status = _ScanDirectory(stack, dir, prefix, prefixPosition);
1489 const char* prefix, size_t prefixPosition)
1500 if (prefix[prefixPosition] != '\0') {
1502 const char* startPrefix = prefix + prefixPosition;
1617 // find listeners by prefix/path
1623 if (strncmp(path, listener->prefix, strlen(listener->prefix)))
1637 _AddDirectory(listener->prefix);
1768 start_watching_modules(const char* prefix, NotificationListener& listener)
1771 status_t status = specifier.AddString("prefix", prefix);
1780 stop_watching_modules(const char* prefix, NotificationListener& listener)
1783 status_t status = specifier.AddString("prefix", prefix);
1973 a given prefix that adhere to the specified suffix.
1975 contain all modules available under the prefix.
1980 open_module_list_etc(const char* prefix, const char* suffix)
1982 TRACE(("open_module_list(prefix = %s)\n", prefix));
1996 iterator->prefix = strdup(prefix != NULL ? prefix : "");
1997 if (iterator->prefix == NULL) {
2001 iterator->prefix_length = strlen(iterator->prefix);
2035 // version below, but the iterator won't work if the prefix
2039 // Build path component: base path + '/' + prefix
2050 memcpy(path + length + 1, iterator->prefix,
2067 open_module_list(const char* prefix)
2069 return open_module_list_etc(prefix, NULL);
2100 free(iterator->prefix);