Lines Matching defs:svc

43 		int (*authCB)(papi_service_t svc, void *app_data),
46 service_t *svc = NULL;
52 if ((*handle = svc = calloc(1, sizeof (*svc))) == NULL)
55 svc->md = mconnect(path, 0, 0);
56 if (svc->md == NULL) {
57 detailed_error(svc,
63 svc->msgbuf_size = MSGMAX;
64 if ((svc->msgbuf = calloc(1, svc->msgbuf_size)) == NULL)
68 papiAttributeListAddString(&svc->attributes, PAPI_ATTR_EXCL,
71 (void) papiServiceSetUserName(svc, user_name);
72 (void) papiServiceSetPassword(svc, password);
73 (void) papiServiceSetAuthCB(svc, authCB);
74 (void) papiServiceSetAppData(svc, app_data);
75 (void) papiServiceSetEncryption(svc, encryption);
83 service_t *svc = handle;
85 if (svc != NULL) {
86 if (svc->md != NULL)
87 mdisconnect(svc->md);
88 if (svc->msgbuf != NULL)
89 free(svc->msgbuf);
90 papiAttributeListFree(svc->attributes);
91 free(svc);
103 service_t *svc = handle;
105 if (svc == NULL)
111 if ((snd_msg(svc, S_PASS_PEER_CONNECTION) < 0) ||
112 (ioctl(svc->md->writefd, I_SENDFD, peerfd) < 0) ||
113 (rcv_msg(svc, R_PASS_PEER_CONNECTION, &status) < 0))
117 detailed_error(svc,
130 service_t *svc = handle;
132 if (svc == NULL)
135 return (papiAttributeListAddString(&svc->attributes, PAPI_ATTR_REPLACE,
142 service_t *svc = handle;
144 if (svc == NULL)
147 return (papiAttributeListAddString(&svc->attributes, PAPI_ATTR_REPLACE,
155 service_t *svc = handle;
157 if (svc == NULL)
160 return (papiAttributeListAddInteger(&svc->attributes, PAPI_ATTR_REPLACE,
166 int (*authCB)(papi_service_t svc, void *app_data))
168 service_t *svc = handle;
170 if (svc == NULL)
173 svc->authCB = (int (*)(papi_service_t svc, void *app_data))authCB;
181 service_t *svc = handle;
183 if (svc == NULL)
186 svc->app_data = (void *)app_data;
194 service_t *svc = handle;
197 if (svc != NULL)
198 papiAttributeListGetString(svc->attributes, NULL,
207 service_t *svc = handle;
210 if (svc != NULL)
211 papiAttributeListGetString(svc->attributes, NULL,
220 service_t *svc = handle;
223 if (svc != NULL)
224 papiAttributeListGetString(svc->attributes, NULL,
233 service_t *svc = handle;
236 if (svc != NULL)
237 papiAttributeListGetInteger(svc->attributes, NULL,
246 service_t *svc = handle;
249 if (svc != NULL)
250 result = svc->app_data;
258 service_t *svc = handle;
261 if (svc != NULL) {
262 lpsched_service_information(&svc->attributes);
263 result = svc->attributes;
272 service_t *svc = handle;
275 if (svc != NULL)
276 papiAttributeListGetString(svc->attributes, NULL,
283 detailed_error(service_t *svc, char *fmt, ...)
285 if ((svc != NULL) && (fmt != NULL)) {
300 papiAttributeListAddString(&svc->attributes, PAPI_ATTR_APPEND,