summaryrefslogtreecommitdiff
path: root/Source/Kernel/UserManager/Usr.ns.h
blob: 36ee2cb1a9ad58b8acec700f3cca470e19d96a7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef DEF_USR_NS_H
#define DEF_USR_NS_H

#include <String.class.h>
class Group;
class User;

namespace Usr {
	void load();	//Loads users into memory, from /System/Configuration/{Users,Groups}
	void save();	//Saves config from mem to filesystem

	u32int uid();	//Returns current processes UID

	User* user(u32int uid);			//Returns user from UID
	User* user(String username);
	User* user();
	Group* group(u32int gid);
	Group* group(String name);

	u32int uid(String username);	//Returns UID of username
};

#endif

#include <UserManager/User.class.h>