X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftask.h;h=b124db7a4873cbd62f3dc833fb163248e34dce86;hb=d180a9d2152fdd28ea68f0fbe0ef52e9c7ceac5a;hp=2239188d4aca6694164bef179362502d72a1ddf7;hpb=b03f80e6d7a9248a80eb3ea6a555a336ae582027;p=platform%2Fupstream%2Fconnman.git diff --git a/include/task.h b/include/task.h old mode 100644 new mode 100755 index 2239188..b124db7 --- a/include/task.h +++ b/include/task.h @@ -2,7 +2,7 @@ * * Connection Manager * - * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. + * Copyright (C) 2007-2012 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -37,12 +37,16 @@ extern "C" { struct connman_task; typedef void (* connman_task_exit_t) (struct connman_task *task, - void *user_data); + int exit_code, void *user_data); -typedef void (* connman_task_notify_t) (struct connman_task *task, +typedef DBusMessage * (* connman_task_notify_t) (struct connman_task *task, DBusMessage *message, void *user_data); -struct connman_task *connman_task_create(const char *program); +typedef void (* connman_task_setup_t) (void *setup_data); + +struct connman_task *connman_task_create(const char *program, + connman_task_setup_t task_setup, + void *setup_data); void connman_task_destroy(struct connman_task *task); const char *connman_task_get_path(struct connman_task *task); @@ -57,7 +61,7 @@ int connman_task_set_notify(struct connman_task *task, const char *member, int connman_task_run(struct connman_task *task, connman_task_exit_t function, void *user_data, - int *fd, int *standard_output, int *standard_error); + int *stdin_fd, int *stdout_fd, int *stderr_fd); int connman_task_stop(struct connman_task *task); #ifdef __cplusplus