Home | History | Annotate | Download | only in android

Lines Matching full:service

89  * The multiplexer is connected to one or more 'service' objects.
585 * When a service decides to send data to the client, there could be cases when
587 * available to write service's data to, So, we need to cache that data into the
589 * callback. Pending service data is stored in the client descriptor as a list
636 /* Service for this pipe. */
637 QemudService* service;
653 QemudService* service;
654 QemudClient* next_serv; /* next in same service */
687 static void qemud_service_remove_client( QemudService* service,
714 * the real service implementation.
826 * and from its service's list, if any.
881 /* remove from service list, if any */
882 if (c->service) {
883 qemud_service_remove_client(c->service, c);
884 c->service = NULL;
926 c->service = NULL;
955 qemud_service_save_name(f, c->service);
977 * corresponding service.
988 /* get current service instance */
991 D("%s: load failed: unknown service \"%s\"\n",
1058 /* A QemudService models a _named_ service facility implemented
1062 * Each service can have a limit on the number of clients they
1065 * Each service maintains a list of active QemudClients and
1115 c->service = s;
1132 D("%s: could not find client for service '%s'",
1145 /* ask the service to create a new QemudClient. Note that we
1147 * the client to the service's list automatically.
1159 D("%s: registration failed for '%s' service",
1163 D("%s: registered client channel %d for '%s' service",
1168 /* find a registered service by name.
1182 /* Save the name of the given service.
1192 /* Load the name of a service. Returns a pointer to the loaded name, or NULL
1202 D("%s: service name load failed: expected %d bytes, got %d\n",
1210 D("%s: service name load failed: expecting NULL-terminated string, but "
1220 /* Saves state of a service.
1233 /* Loads service state from file, then updates the currently running instance
1234 * of that service to mirror the loaded state. If the service is not running,
1246 /* get current service instance */
1249 D("%s: loading failed: service \"%s\" not available\n",
1254 /* reconfigure service as required */
1258 /* load service specific data */
1272 * qemud service facility. It holds a QemudSerial object to
1322 * success, -1 if the service name is unknown, or -2
1323 * if the service's maximum number of clients has been
1331 /* find the corresponding registered service by name */
1334 D("%s: no registered '%s' service", __FUNCTION__, service_name);
1338 /* check service's client count */
1340 D("%s: registration failed for '%s' service: too many clients (%d)",
1345 /* connect a new client to the service on the given channel */
1421 * the client message must be "connect:<service-name>:<id>"
1436 *q++ = 0; /* zero-terminate service name */
1452 p = bufprint(tmp, end, "ko:connect:%02x:unknown service", channel);
1454 p = bufprint(tmp, end, "ko:connect:%02x:service busy", channel);
1480 /* an ok:connect:<service>:<id> message can be received if we're
1497 *q++ = 0; /* zero-terminate service name */
1575 * send incoming client messages to the corresponding service
1576 * implementation, or notify the service that a client has
1580 qemud_client_new( QemudService* service,
1600 qemud_service_add_client(service, c);
1604 /* Caches a service message into the client's descriptor.
1633 /* Sends service message to the client.
1677 /* this can be used by a service implementation to send an answer
1709 /* this can be used by a service implementation to close a
1754 * service.
1763 /* save service states */
1848 * QEMUD PIPE service callbacks
1892 /* This is a callback that gets invoked when guest is connecting to the service.
1908 /* 'args' passed in this callback represents name of the service the guest is
1915 /* 'args' contain service name, and optional parameters for the client that
1917 * service name wit ':'. Separate service name from the client param. */
1932 /* Lookup registered service by its name. */
1937 D("%s: Service '%s' has not been registered!", __FUNCTION__, service_name);
1948 pipe->service = sv;
2035 * PIPE_WAKE_READ when service sends data to the client. */
2100 qemud_service_save_name(f, c->service);
2136 /* get service instance for the loading client*/
2139 D("%s: load failed: unknown service \"%s\"\n",
2201 qemud_pipe->service = sv;
2286 * service. You must provide 'serv_opaque' and 'serv_connect'
2295 * the service concurrently. If this value is 0, then any number
2318 D("Registered QEMUD service %s", service_name);
2339 * It allows you to implement a given qemud-based service through
2348 * For example, this is used to implement the "gsm" service when the
2357 QemudService* service;
2386 * has been set to called during service registration. Unless modem driver
2418 /* called when a qemud client tries to connect to a char. service.
2446 * device or external serial port to implement a char. service
2454 derror("can't open charpipe for '%s' qemud service", name);