diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-03-31 18:45:17 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-31 18:45:17 -0500 |
commit | d6093b819fd31be14becc6dfcaeb30001eb88bc1 (patch) | |
tree | 0008da64efef79dcc4c7522f708e0e4f1dad6204 /gatchat/gatppp.h | |
parent | 4d44103cce5643ad0a1b8a56dbda9ca758b91bb6 (diff) | |
download | ofono-d6093b819fd31be14becc6dfcaeb30001eb88bc1.tar.bz2 |
Refactor: GAtPPP connect callback
The connect callback was not giving enough information and the
information it was providing was not in a convenient form.
- Provide the ppp interface name (e.g. tun0)
- Provide ip, dns1 & dns2 as strings
- Do not send the ppp structure in the callback, it is most likely
present in the user data anyway
Diffstat (limited to 'gatchat/gatppp.h')
-rw-r--r-- | gatchat/gatppp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gatppp.h b/gatchat/gatppp.h index 2fba90f7..41aadcad 100644 --- a/gatchat/gatppp.h +++ b/gatchat/gatppp.h @@ -34,9 +34,9 @@ typedef enum _GAtPPPConnectStatus { G_AT_PPP_CONNECT_FAIL } GAtPPPConnectStatus; -typedef void (*GAtPPPConnectFunc)(GAtPPP *ppp, GAtPPPConnectStatus success, - guint32 ip_address, - guint32 dns1, guint32 dns2, +typedef void (*GAtPPPConnectFunc)(GAtPPPConnectStatus success, + const char *iface, const char *ip, + const char *dns1, const char *dns2, gpointer user_data); typedef void (*GAtPPPDisconnectFunc)(GAtPPP *ppp, gpointer user_data); |