diff include/openid.h @ 2:b757dc2bd2f6

Discovery returns a record
author Adam Chlipala <adam@chlipala.net>
date Sun, 26 Dec 2010 13:28:06 -0500
parents c230e6da3ff6
children f59083771ee2
line wrap: on
line diff
--- a/include/openid.h	Sun Dec 26 13:10:36 2010 -0500
+++ b/include/openid.h	Sun Dec 26 13:28:06 2010 -0500
@@ -1,4 +1,9 @@
 #include <urweb/urweb.h>
 
+typedef struct uw_OpenidFfi_discovery *uw_OpenidFfi_discovery;
+
+uw_Basis_string uw_OpenidFfi_endpoint(uw_context, uw_OpenidFfi_discovery);
+uw_Basis_string uw_OpenidFfi_localId(uw_context, uw_OpenidFfi_discovery);
+
 uw_unit uw_OpenidFfi_init(uw_context);
-uw_Basis_string uw_OpenidFfi_discover(uw_context, uw_Basis_string id);
+uw_OpenidFfi_discovery *uw_OpenidFfi_discover(uw_context, uw_Basis_string id);