projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8722828
)
Add CALLBACK_WITH_SUCCESS
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 18 Nov 2009 23:43:45 +0000
(17:43 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 19 Nov 2009 00:07:11 +0000
(18:07 -0600)
drivers/atmodem/atutil.h
patch
|
blob
|
history
diff --git
a/drivers/atmodem/atutil.h
b/drivers/atmodem/atutil.h
index
82c3f3b
..
35a79b4
100644
(file)
--- a/
drivers/atmodem/atutil.h
+++ b/
drivers/atmodem/atutil.h
@@
-63,3
+63,11
@@
static inline struct cb_data *cb_data_new(void *cb, void *data)
cb(&cb_e, ##args); \
} while (0) \
+#define CALLBACK_WITH_SUCCESS(f, args...) \
+ do { \
+ struct ofono_error e; \
+ e.type = OFONO_ERROR_TYPE_NO_ERROR; \
+ e.error = 0; \
+ f(&e, ##args); \
+ } while(0) \
+