1 /* 2 * librest - RESTful web services access 3 * Copyright (c) 2012, Red Hat, Inc. 4 * 5 * Authors: Christophe Fergeau <cfergeau@redhat.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms and conditions of the GNU Lesser General Public License, 9 * version 2.1, as published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope it will be useful, but WITHOUT ANY 12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 14 * more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public License 17 * along with this program; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 */ 21 22 #ifndef _REST_PROXY_AUTH 23 #define _REST_PROXY_AUTH 24 25 #include <glib-object.h> 26 27 G_BEGIN_DECLS 28 29 #define REST_TYPE_PROXY_AUTH rest_proxy_auth_get_type() 30 31 #define REST_PROXY_AUTH(obj) \ 32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), REST_TYPE_PROXY_AUTH, RestProxyAuth)) 33 34 #define REST_PROXY_AUTH_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST ((klass), REST_TYPE_PROXY_AUTH, RestProxyAuthClass)) 36 37 #define REST_IS_PROXY_AUTH(obj) \ 38 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), REST_TYPE_PROXY_AUTH)) 39 40 #define REST_IS_PROXY_AUTH_CLASS(klass) \ 41 (G_TYPE_CHECK_CLASS_TYPE ((klass), REST_TYPE_PROXY_AUTH)) 42 43 #define REST_PROXY_AUTH_GET_CLASS(obj) \ 44 (G_TYPE_INSTANCE_GET_CLASS ((obj), REST_TYPE_PROXY_AUTH, RestProxyAuthClass)) 45 46 typedef struct _RestProxyAuthPrivate RestProxyAuthPrivate; 47 48 /** 49 * RestProxyAuth: 50 * 51 * #RestProxyAuth has no publicly available members. 52 */ 53 typedef struct { 54 GObject parent; 55 RestProxyAuthPrivate *priv; 56 } RestProxyAuth; 57 58 typedef struct { 59 GObjectClass parent_class; 60 /*< private >*/ 61 /* padding for future expansion */ 62 gpointer _padding_dummy[8]; 63 } RestProxyAuthClass; 64 65 GType rest_proxy_auth_get_type (void); 66 67 void rest_proxy_auth_pause (RestProxyAuth *auth); 68 void rest_proxy_auth_unpause (RestProxyAuth *auth); 69 void rest_proxy_auth_cancel (RestProxyAuth *auth); 70 71 G_END_DECLS 72 73 #endif /* _REST_PROXY_AUTH */ 74