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:
@@ -40,6 +40,7 @@ class BMessage;
|
|||||||
class BNodeInfo;
|
class BNodeInfo;
|
||||||
|
|
||||||
extern "C" int _init_roster_();
|
extern "C" int _init_roster_();
|
||||||
|
extern "C" int _delete_roster_();
|
||||||
|
|
||||||
/*-------------------------------------------------------------*/
|
/*-------------------------------------------------------------*/
|
||||||
/* --------- app_info Struct and Values ------------------------ */
|
/* --------- app_info Struct and Values ------------------------ */
|
||||||
|
|||||||
+14
-6
@@ -26,6 +26,7 @@
|
|||||||
// Global be_roster represents the default BRoster.
|
// Global be_roster represents the default BRoster.
|
||||||
// app_info structure provides info for a running app.
|
// app_info structure provides info for a running app.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
#include <new.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -43,12 +44,22 @@ enum {
|
|||||||
NOT_IMPLEMENTED = B_ERROR,
|
NOT_IMPLEMENTED = B_ERROR,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//static char _GlobalRoster[sizeof(BRoster)];
|
||||||
|
|
||||||
// _init_roster_
|
// _init_roster_
|
||||||
int
|
int
|
||||||
_init_roster_()
|
_init_roster_()
|
||||||
{
|
{
|
||||||
// TODO: What is this function supposed to do?
|
be_roster = new BRoster;
|
||||||
return 0; // not implemented
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// _delete_roster_
|
||||||
|
int
|
||||||
|
_delete_roster_()
|
||||||
|
{
|
||||||
|
delete be_roster;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
@@ -480,8 +491,5 @@ DBG(OUT("BRoster::InitMessengers() done\n"));
|
|||||||
/*-----------------------------------------------------*/
|
/*-----------------------------------------------------*/
|
||||||
/*----- Global be_roster ------------------------------*/
|
/*----- Global be_roster ------------------------------*/
|
||||||
|
|
||||||
// TODO: Rethink this strategy. BRoster::InitMessengers() relies on BMessage,
|
const BRoster *be_roster;
|
||||||
// more precisely the reply ports being initialized.
|
|
||||||
static const BRoster _GlobalRoster;
|
|
||||||
const BRoster *be_roster = &_GlobalRoster;
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user