Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: include/task.h

Issue 6513009: flimflam: Add L2TP/IPsec VPN plugin (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Remove local, add params Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * 2 *
3 * Connection Manager 3 * Connection Manager
4 * 4 *
5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as 8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 * 10 *
(...skipping 21 matching lines...) Expand all
32 * SECTION:task 32 * SECTION:task
33 * @title: Task primitives 33 * @title: Task primitives
34 * @short_description: Functions for handling tasks 34 * @short_description: Functions for handling tasks
35 */ 35 */
36 36
37 struct connman_task; 37 struct connman_task;
38 38
39 typedef void (* connman_task_exit_t) (struct connman_task *task, 39 typedef void (* connman_task_exit_t) (struct connman_task *task,
40 void *user_data); 40 void *user_data);
41 41
42 typedef void (* connman_task_notify_t) (struct connman_task *task, 42 typedef DBusMessage * (* connman_task_notify_t) (struct connman_task *task,
43 DBusMessage *message, void *user_data); 43 DBusMessage *message, void *user_data);
44 44
45 struct connman_task *connman_task_create(const char *program); 45 struct connman_task *connman_task_create(const char *program);
46 void connman_task_destroy(struct connman_task *task); 46 void connman_task_destroy(struct connman_task *task);
47 47
48 const char *connman_task_get_path(struct connman_task *task); 48 const char *connman_task_get_path(struct connman_task *task);
49 49
50 int connman_task_add_argument(struct connman_task *task, 50 int connman_task_add_argument(struct connman_task *task,
51 const char *name, const char *format, ...); 51 const char *name, const char *format, ...);
52 int connman_task_add_variable(struct connman_task *task, 52 int connman_task_add_variable(struct connman_task *task,
53 const char *key, const char *format, ...); 53 const char *key, const char *format, ...);
54 54
55 int connman_task_set_notify(struct connman_task *task, const char *member, 55 int connman_task_set_notify(struct connman_task *task, const char *member,
56 connman_task_notify_t function, void *user_data); 56 connman_task_notify_t function, void *user_data);
57 57
58 int connman_task_run(struct connman_task *task, 58 int connman_task_run(struct connman_task *task,
59 connman_task_exit_t function, void *user_data, 59 connman_task_exit_t function, void *user_data,
60 int *stdin_fd, int *stdout_fd, int *stderr_fd); 60 int *stdin_fd, int *stdout_fd, int *stderr_fd);
61 int connman_task_stop(struct connman_task *task); 61 int connman_task_stop(struct connman_task *task);
62 62
63 #ifdef __cplusplus 63 #ifdef __cplusplus
64 } 64 }
65 #endif 65 #endif
66 66
67 #endif /* __CONNMAN_TASK_H */ 67 #endif /* __CONNMAN_TASK_H */
OLDNEW
« no previous file with comments | « configure.ac ('k') | plugins/l2tpipsec.c » ('j') | plugins/l2tpipsec.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698