Lines Matching refs:backends
80 /* List of currently available share backends */
81 static struct share_ops **backends = NULL;
87 for (i = 0; backends && backends[i]; i++) {
88 if (strcmp(backends[i]->name, name) == 0) {
89 return backends[i];
109 while (backends && backends[i]) {
113 backends = realloc_p(backends, struct share_ops *, i + 2);
114 if (!backends) {
118 backends[i] = (struct share_ops *)smb_xmemdup(ops, sizeof(*ops));
119 backends[i]->name = smb_xstrdup(ops->name);
121 backends[i + 1] = NULL;