Mercurial > pidgin
diff libpurple/network.h @ 25852:b38cbefca6ad
Add a -f/--force-online option to Pidgin which tells libpurple to claim the
network is available, even if NetworkManager (or Windows) says it isn't.
This is useful for offline development with nullprpl. If you don't like
-f for this and would just like to keep the long option, I'm fine with that.
Also, remove a -x/--nocrash option in Pidgin that doesn't seem to do anything.
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Fri, 28 Nov 2008 06:06:35 +0000 |
| parents | f52b94f3b6ca |
| children | ff4212a5268f |
line wrap: on
line diff
--- a/libpurple/network.h Fri Nov 28 00:42:22 2008 +0000 +++ b/libpurple/network.h Fri Nov 28 06:06:35 2008 +0000 @@ -208,6 +208,17 @@ gboolean purple_network_is_available(void); /** + * Makes purple_network_is_available() always return @c TRUE. + * + * This is what backs the --force-online command line argument in Pidgin, + * for example. This is useful for offline testing, especially when + * combined with nullprpl. + * + * @since 2.6.0 + */ +void purple_network_force_online(void); + +/** * Get the handle for the network system * * @return the handle to the network system
