~ubuntu-branches/ubuntu/oneiric/accountsservice/oneiric

« back to all changes in this revision

Viewing changes to src/libaccountsservice/act-user-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-04-14 11:01:37 UTC
  • mfrom: (2.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110414110137-7bupj01yasoysm55
Tags: 0.6.8-2
* Upload to unstable.
* Add patch to prevent crash due to getpwnam returning a NULL pointer.
  Thanks to Mattias Eriksson for the patch.
* Add symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 */
 
19
 
 
20
/*
 
21
 * Private interfaces to the ActUser object
 
22
 */
 
23
 
 
24
#ifndef __ACT_USER_PRIVATE_H_
 
25
#define __ACT_USER_PRIVATE_H_
 
26
 
 
27
#include <pwd.h>
 
28
 
 
29
#include "act-user.h"
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
33
void           _act_user_update_from_object_path   (ActUser    *user,
 
34
                                                    const char *object_path);
 
35
void           _act_user_update_login_frequency    (ActUser    *user,
 
36
                                                    int         login_frequency);
 
37
 
 
38
void           _act_user_add_session      (ActUser             *user,
 
39
                                           const char          *session_id);
 
40
void           _act_user_remove_session   (ActUser             *user,
 
41
                                           const char          *session_id);
 
42
 
 
43
G_END_DECLS
 
44
 
 
45
#endif /* !__ACT_USER_PRIVATE_H_ */