polkitprivate.h 2.07 KB
Newer Older
David Zeuthen's avatar
David Zeuthen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*
 * Copyright (C) 2008 Red Hat, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General
 * Public License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Author: David Zeuthen <davidz@redhat.com>
 */

#ifndef __POLKIT_PRIVATE_H
#define __POLKIT_PRIVATE_H

25
#include "polkitimplicitauthorization.h"
David Zeuthen's avatar
David Zeuthen committed
26
#include "polkitactiondescription.h"
27
#include "polkitsubject.h"
28
#include "polkitauthorizationresult.h"
David Zeuthen's avatar
David Zeuthen committed
29 30
#include "_polkitbindings.h"

31 32 33 34 35 36 37
/* notes:
 *
 * - the _new_for_real() functions will ref the passed arg (you will still own the ref)
 * - the _get_real() functions will return a ref (you will own the ref)
 *
 */

David Zeuthen's avatar
David Zeuthen committed
38
PolkitActionDescription  *polkit_action_description_new_for_real (_PolkitActionDescription *real);
39 40 41 42 43
_PolkitActionDescription *polkit_action_description_get_real     (PolkitActionDescription  *action_description);

PolkitSubject  *polkit_subject_new_for_real (_PolkitSubject *real);
_PolkitSubject *polkit_subject_get_real     (PolkitSubject  *subject);

44 45 46
PolkitIdentity  *polkit_identity_new_for_real (_PolkitIdentity *real);
_PolkitIdentity *polkit_identity_get_real     (PolkitIdentity  *identity);

47 48 49
PolkitAuthorizationResult  *polkit_authorization_result_new_for_real (_PolkitAuthorizationResult *real);
_PolkitAuthorizationResult *polkit_authorization_result_get_real (PolkitAuthorizationResult *authorization_result);

50 51 52 53

PolkitDetails *polkit_details_new_for_hash (GHashTable *hash);
GHashTable *polkit_details_get_hash (PolkitDetails *details);

David Zeuthen's avatar
David Zeuthen committed
54
#endif /* __POLKIT_PRIVATE_H */