-/* Simple commands are those which need only respond with a return value. */
-static int process_simple_client_cmd(int command, char *recv_buf)
-{
- int result;
-
- switch(command) {
- case SET_SOCK_PATH:
- {
- struct ustcomm_single_field *sock_msg;
- sock_msg = (struct ustcomm_single_field *)recv_buf;
- result = ustcomm_unpack_single_field(sock_msg);
- if (result < 0) {
- return result;
- }
- return setenv("UST_DAEMON_SOCKET", sock_msg->field, 1);
- }
-
- default:
- return -EINVAL;
- }
-
- return 0;
-}
-
-