vfs: check userland buffers before reading them.
[haiku.git] / src / servers / registrar / RosterAppInfo.h
blob40dd8e238a83ea480da761e79dde90d624f34717
1 /*
2 * Copyright 2001-2007, Ingo Weinhold, bonefish@users.sf.net.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef ROSTER_APP_INFO_H
6 #define ROSTER_APP_INFO_H
8 #include <Roster.h>
10 enum application_state {
11 APP_STATE_UNREGISTERED,
12 APP_STATE_PRE_REGISTERED,
13 APP_STATE_REGISTERED,
17 struct RosterAppInfo : app_info {
18 application_state state;
19 uint32 token;
20 // token is meaningful only if state is APP_STATE_PRE_REGISTERED and
21 // team is -1.
22 bigtime_t registration_time; // time of first addition
24 RosterAppInfo();
25 void Init(thread_id thread, team_id team, port_id port, uint32 flags,
26 const entry_ref *ref, const char *signature);
28 RosterAppInfo *Clone() const;
29 bool IsRunning() const;
32 #endif // ROSTER_APP_INFO_H