UsersTable.h 755 Bytes
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1
/* Do not edit this file. It was automatically generated. */
Hisham Muhammad's avatar
Hisham Muhammad committed
2
3
4
5

#ifndef HEADER_UsersTable
#define HEADER_UsersTable
/*
Hisham Muhammad's avatar
Hisham Muhammad committed
6
htop - UsersTable.h
Hisham Muhammad's avatar
Hisham Muhammad committed
7
(C) 2004-2011 Hisham H. Muhammad
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

Hisham Muhammad's avatar
Hisham Muhammad committed
12
#include "config.h"
Hisham Muhammad's avatar
Hisham Muhammad committed
13
14
15
#include "Hashtable.h"

#include <stdio.h>
Hisham Muhammad's avatar
Hisham Muhammad committed
16
#include <string.h>
Hisham Muhammad's avatar
Hisham Muhammad committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <strings.h>
#include <pwd.h>
#include <sys/types.h>

#include "debug.h"
#include <assert.h>

typedef struct UsersTable_ {
   Hashtable* users;
} UsersTable;

UsersTable* UsersTable_new();

void UsersTable_delete(UsersTable* this);

32
char* UsersTable_getRef(UsersTable* this, unsigned int uid);
Hisham Muhammad's avatar
Hisham Muhammad committed
33

34
extern void UsersTable_foreach(UsersTable* this, Hashtable_PairFunction f, void* userData);
Hisham Muhammad's avatar
Hisham Muhammad committed
35
36

#endif