diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-21 12:45:50 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-16 14:53:15 +0100 |
commit | 089a98385071527ca17925f8cd63f79cff02f8de (patch) | |
tree | 492257956117bd66b501b8773bd8b8fd005504b2 /src/mm-auth.h | |
parent | 7316f4645bf82a8586507a4f7abf57bf9470d309 (diff) |
auth: refactor and simplify authentication related setup
We get rid of the MMAuthRequests; and we leave up to the caller and user of the
MMAuthProvider the handling of request cancellations through the provided
GCancellable.
Also made GIO-async-friendly methods.
Diffstat (limited to 'src/mm-auth.h')
-rw-r--r-- | src/mm-auth.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mm-auth.h b/src/mm-auth.h new file mode 100644 index 00000000..27b5daef --- /dev/null +++ b/src/mm-auth.h @@ -0,0 +1,27 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details: + * + * Copyright (C) 2010 - 2012 Red Hat, Inc. + * Copyright (C) 2012 Google, Inc. + */ + +#ifndef MM_AUTH_H +#define MM_AUTH_H + +#include "mm-auth-provider.h" + +/* Get the default provider */ +MMAuthProvider *mm_auth_get_provider (void); + +void mm_auth_shutdown (void); + +#endif /* MM_AUTH_H */ |