Lines Matching defs:svc

41 service_fill_in(service_t *svc, char *name)
46 if (svc == NULL)
61 if (svc->uri != NULL)
62 uri_free(svc->uri);
63 svc->uri = uri;
76 int (*authCB)(papi_service_t svc, void *app_data),
80 service_t *svc = NULL;
85 if ((*handle = svc = (service_t *)calloc(1, sizeof (*svc))) == NULL)
89 papiAttributeListAddString(&svc->attributes, PAPI_ATTR_EXCL,
92 (void) papiServiceSetUserName(svc, user_name);
93 (void) papiServiceSetPassword(svc, password);
94 (void) papiServiceSetAuthCB(svc, authCB);
95 (void) papiServiceSetAppData(svc, app_data);
96 (void) papiServiceSetEncryption(svc, encryption);
98 status = service_fill_in(svc, service_name);
107 service_t *svc = handle;
110 if (svc->cache != NULL)
111 cache_free(svc->cache);
113 if (svc->uri != NULL)
114 uri_free(svc->uri);
115 if (svc->attributes != NULL)
116 papiAttributeListFree(svc->attributes);
117 free(svc);
124 service_t *svc = handle;
126 if (svc == NULL)
129 return (papiAttributeListAddString(&svc->attributes, PAPI_ATTR_REPLACE,
136 service_t *svc = handle;
138 if (svc == NULL)
141 return (papiAttributeListAddString(&svc->attributes,
149 service_t *svc = handle;
151 if (svc == NULL)
154 return (papiAttributeListAddInteger(&svc->attributes, PAPI_ATTR_REPLACE,
160 int (*authCB)(papi_service_t svc, void *app_data))
162 service_t *svc = handle;
164 if (svc == NULL)
167 svc->authCB = (int (*)(papi_service_t svc, void *))authCB;
175 service_t *svc = handle;
177 if (svc == NULL)
180 svc->app_data = (void *)app_data;
188 service_t *svc = handle;
191 if (svc != NULL)
192 papiAttributeListGetString(svc->attributes, NULL,
201 service_t *svc = handle;
204 if (svc != NULL)
205 papiAttributeListGetString(svc->attributes, NULL,
215 service_t *svc = handle;
218 if (svc != NULL)
219 papiAttributeListGetString(svc->attributes, NULL,
228 service_t *svc = handle;
231 if (svc != NULL)
232 papiAttributeListGetInteger(svc->attributes, NULL,
241 service_t *svc = handle;
244 if (svc != NULL) {
245 result = svc->app_data;
255 service_t *svc = handle;
258 if (svc != NULL)
259 result = svc->attributes;
267 service_t *svc = handle;
270 if (svc != NULL) {
271 papiAttributeListGetString(svc->attributes, NULL,
279 detailed_error(service_t *svc, char *fmt, ...)
281 if ((svc != NULL) && (fmt != NULL)) {
296 papiAttributeListAddString(&svc->attributes, PAPI_ATTR_APPEND,