Implemented _init_roster_() and added _delete_roster_() which are now responsible for be_roster.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@399 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a3a31e261e
commit
17c00872bb
@ -40,6 +40,7 @@ class BMessage;
|
||||
class BNodeInfo;
|
||||
|
||||
extern "C" int _init_roster_();
|
||||
extern "C" int _delete_roster_();
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
/* --------- app_info Struct and Values ------------------------ */
|
||||
|
@ -26,6 +26,7 @@
|
||||
// Global be_roster represents the default BRoster.
|
||||
// app_info structure provides info for a running app.
|
||||
//------------------------------------------------------------------------------
|
||||
#include <new.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -43,12 +44,22 @@ enum {
|
||||
NOT_IMPLEMENTED = B_ERROR,
|
||||
};
|
||||
|
||||
//static char _GlobalRoster[sizeof(BRoster)];
|
||||
|
||||
// _init_roster_
|
||||
int
|
||||
_init_roster_()
|
||||
{
|
||||
// TODO: What is this function supposed to do?
|
||||
return 0; // not implemented
|
||||
be_roster = new BRoster;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// _delete_roster_
|
||||
int
|
||||
_delete_roster_()
|
||||
{
|
||||
delete be_roster;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// constructor
|
||||
@ -480,8 +491,5 @@ DBG(OUT("BRoster::InitMessengers() done\n"));
|
||||
/*-----------------------------------------------------*/
|
||||
/*----- Global be_roster ------------------------------*/
|
||||
|
||||
// TODO: Rethink this strategy. BRoster::InitMessengers() relies on BMessage,
|
||||
// more precisely the reply ports being initialized.
|
||||
static const BRoster _GlobalRoster;
|
||||
const BRoster *be_roster = &_GlobalRoster;
|
||||
const BRoster *be_roster;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user