[_{kern,user}_]{start,stop}_system_watching()

-> [_{kern,user}_]{start,stop}_watching_system()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39872 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-12-16 17:01:23 +00:00
parent 756b64fd83
commit d23cadce4c
7 changed files with 17 additions and 16 deletions

View File

@ -25,10 +25,10 @@ status_t _user_get_system_info(system_info *userInfo, size_t size);
status_t _user_get_system_info_etc(int32 id, void *buffer,
size_t bufferSize);
status_t _user_start_system_watching(int32 object, uint32 flags,
port_id port, int32 token);
status_t _user_stop_system_watching(int32 object, uint32 flags,
port_id port, int32 token);
status_t _user_start_watching_system(int32 object, uint32 flags, port_id port,
int32 token);
status_t _user_stop_watching_system(int32 object, uint32 flags, port_id port,
int32 token);
#ifdef __cplusplus

View File

@ -174,9 +174,9 @@ extern status_t _kern_get_team_usage_info(team_id team, int32 who,
extern status_t _kern_get_extended_team_info(team_id teamID, uint32 flags,
void* buffer, size_t size, size_t* _sizeNeeded);
extern status_t _kern_start_system_watching(int32 object, uint32 flags,
extern status_t _kern_start_watching_system(int32 object, uint32 flags,
port_id port, int32 token);
extern status_t _kern_stop_system_watching(int32 object, uint32 flags,
extern status_t _kern_stop_watching_system(int32 object, uint32 flags,
port_id port, int32 token);
extern status_t _kern_block_thread(uint32 flags, bigtime_t timeout);

View File

@ -65,9 +65,9 @@ extern "C" {
status_t get_system_info_etc(int32 id, void* buffer, size_t bufferSize);
status_t start_system_watching(int32 object, uint32 flags, port_id port,
status_t start_watching_system(int32 object, uint32 flags, port_id port,
int32 token);
status_t stop_system_watching(int32 object, uint32 flags, port_id port,
status_t stop_watching_system(int32 object, uint32 flags, port_id port,
int32 token);

View File

@ -282,10 +282,11 @@ DebuggerInterface::Init()
if (fSystemWatchPort < 0)
return fSystemWatchPort;
error = start_system_watching(fTeamID, B_WATCH_SYSTEM_THREAD_PROPERTIES,
error = start_watching_system(fTeamID, B_WATCH_SYSTEM_THREAD_PROPERTIES,
fSystemWatchPort, 0);
if (error != B_OK)
return error;
// TODO: Stop watching in Close()!
// create debug context pool
fDebugContextPool = new(std::nothrow) DebugContextPool(fTeamID, fNubPort);

View File

@ -524,7 +524,7 @@ _user_get_system_info_etc(int32 id, void* userInfo, size_t size)
status_t
_user_start_system_watching(int32 object, uint32 flags, port_id port,
_user_start_watching_system(int32 object, uint32 flags, port_id port,
int32 token)
{
return sSystemNotificationService.StartListening(object, flags, port,
@ -533,7 +533,7 @@ _user_start_system_watching(int32 object, uint32 flags, port_id port,
status_t
_user_stop_system_watching(int32 object, uint32 flags, port_id port,
_user_stop_watching_system(int32 object, uint32 flags, port_id port,
int32 token)
{
return sSystemNotificationService.StopListening(object, flags, port, token);

View File

@ -31,16 +31,16 @@ get_system_info_etc(int32 id, void *info, size_t size)
status_t
start_system_watching(int32 object, uint32 flags, port_id port, int32 token)
start_watching_system(int32 object, uint32 flags, port_id port, int32 token)
{
return _kern_start_system_watching(object, flags, port, token);
return _kern_start_watching_system(object, flags, port, token);
}
status_t
stop_system_watching(int32 object, uint32 flags, port_id port, int32 token)
stop_watching_system(int32 object, uint32 flags, port_id port, int32 token)
{
return _kern_stop_system_watching(object, flags, port, token);
return _kern_stop_watching_system(object, flags, port, token);
}

View File

@ -97,7 +97,7 @@ main(int argc, const char* const* argv)
}
// start watching
status_t error = start_system_watching(watchTeam, watchEvents, port, 0);
status_t error = start_watching_system(watchTeam, watchEvents, port, 0);
if (error != B_OK) {
fprintf(stderr, "Failed to start watching: %s\n", strerror(error));
exit(1);