gio: Add GTlsInteraction interaction method invocation guarantees

* Add 'invoke' style method, which can be used to call an interaction
   from any thread. The interaction will be run in the appropriate
   #GMainContext
 * Sync methods can be called whether main loop is running or not.
 * Derived classes can choose to implement only sync or async
   interaction method, and the invoke method will fill in the blanks.
 * Documentation for the above.
 * Tests for the above.

https://bugzilla.gnome.org/show_bug.cgi?id=657567
This commit is contained in:
Stef Walter
2011-08-28 20:24:56 +02:00
parent 116b2932ab
commit 49bb7cff4b
6 changed files with 1036 additions and 65 deletions

View File

@@ -52,6 +52,7 @@ TEST_PROGS += \
socket \
pollable \
tls-certificate \
tls-interaction \
cancellable \
$(NULL)
@@ -468,6 +469,8 @@ proxy_LDADD = $(progs_ldadd) \
tls_certificate_SOURCES = tls-certificate.c gtesttlsbackend.c gtesttlsbackend.h
tls_certificate_LDADD = $(progs_ldadd)
tls_interaction_LDADD = $(progs_ldadd)
cancellable_LDADD = $(progs_ldadd)
# -----------------------------------------------------------------------------