diff options
-rw-r--r-- | drivers/atmodem/atutil.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/atmodem/atutil.h b/drivers/atmodem/atutil.h index 82c3f3bb..35a79b4f 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) \ + |