diff options
Diffstat (limited to 'libgammu/api.c')
-rw-r--r-- | libgammu/api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgammu/api.c b/libgammu/api.c index 3ae8dbb..4ed04b6 100644 --- a/libgammu/api.c +++ b/libgammu/api.c @@ -2,6 +2,7 @@ #include <gammu.h> #include "gsmstate.h" +#include "gsmcomon.h" #include "debug.h" #ifdef __FUNCTION__WORKING @@ -40,6 +41,12 @@ if (!GSM_IsConnected(s)) { \ return ERR_NOTCONNECTED; \ } \ + if (s->Phone.Functions->PreAPICall != NONEFUNCTION) { \ + err = s->Phone.Functions->PreAPICall(s); \ + if (err != ERR_NONE) { \ + return err; \ + } \ + } \ } /** |