* Cleared up a misconception in the notification mechanism. We already had
methods that used an "event mask" field. There was no need to introduce a "flags" field for the same purpose. * Renamed protected DefaultNotificationService methods (removed "_" prefix). * Adjusted the code providing a notification service accordingly. * Changed the event message several notification services generated by renaming the "opcode" field to "event". * Implemented the TEAM_ADDED event and also added a TEAM_EXEC event. * Added notifications for threads and images. * Added visitor-like iteration functions for teams, threads, and images. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30126 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
#include <thread_types.h>
|
||||
|
||||
|
||||
// Team notifications
|
||||
// team notifications
|
||||
#define TEAM_MONITOR '_Tm_'
|
||||
#define TEAM_ADDED 1
|
||||
#define TEAM_REMOVED 2
|
||||
#define TEAM_ADDED 0x01
|
||||
#define TEAM_REMOVED 0x02
|
||||
#define TEAM_EXEC 0x04
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -40,6 +41,10 @@ struct team *team_get_team_struct_locked(team_id id);
|
||||
int32 team_max_teams(void);
|
||||
int32 team_used_teams(void);
|
||||
|
||||
typedef bool (*team_iterator_callback)(struct team* team, void* cookie);
|
||||
struct team* team_iterate_through_teams(team_iterator_callback callback,
|
||||
void* cookie);
|
||||
|
||||
thread_id load_image_etc(int32 argCount, const char* const* args,
|
||||
const char* const* env, int32 priority, team_id parentID, uint32 flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user