From efd34778d1a4fa8084f71afcd83f2ee0616d4661 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 18 Nov 2009 17:43:45 -0600 Subject: [PATCH] Add CALLBACK_WITH_SUCCESS --- drivers/atmodem/atutil.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/atmodem/atutil.h b/drivers/atmodem/atutil.h index 82c3f3b..35a79b4 100644 --- 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) \ + -- 2.7.4