diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-05-22 08:34:08 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-05-24 12:25:07 -0500 |
commit | d82c5ce1fafd9a83350beb4807e2bba3dd1f79b8 (patch) | |
tree | e7bd5eb28c5f0959569070b72cdb5699de298cd7 /gatchat | |
parent | db430aaf1ccf6f4f11bd53134a4ba9dade87af30 (diff) |
gatppp: Rename guard_timeout_src to _source
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatppp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c index 135e98cf..74942533 100644 --- a/gatchat/gatppp.c +++ b/gatchat/gatppp.c @@ -81,7 +81,7 @@ struct _GAtPPP { GAtSuspendFunc suspend_func; gpointer suspend_data; int fd; - guint guard_timeout_src; + guint guard_timeout_source; gboolean suspended; }; @@ -516,7 +516,7 @@ static gboolean call_suspend_cb(gpointer user_data) { GAtPPP *ppp = user_data; - ppp->guard_timeout_src = 0; + ppp->guard_timeout_source = 0; if (ppp->suspend_func) ppp->suspend_func(ppp->suspend_data); @@ -529,9 +529,8 @@ static gboolean send_escape_sequence(gpointer user_data) GAtPPP *ppp = user_data; GAtIO *io = g_at_hdlc_get_io(ppp->hdlc); - ppp->guard_timeout_src = 0; g_at_io_write(io, "+++", 3); - ppp->guard_timeout_src = g_timeout_add(GUARD_TIMEOUTS, + ppp->guard_timeout_source = g_timeout_add(GUARD_TIMEOUTS, call_suspend_cb, ppp); return FALSE; @@ -545,7 +544,7 @@ void g_at_ppp_suspend(GAtPPP *ppp) ppp->suspended = TRUE; ppp_net_suspend_interface(ppp->net); g_at_hdlc_suspend(ppp->hdlc); - ppp->guard_timeout_src = g_timeout_add(GUARD_TIMEOUTS, + ppp->guard_timeout_source = g_timeout_add(GUARD_TIMEOUTS, send_escape_sequence, ppp); } |