API tweaks

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4984 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-10-10 02:33:38 +00:00
parent 9b2a55526a
commit 836656bf86
2 changed files with 16 additions and 3 deletions
+13 -1
View File
@@ -339,13 +339,25 @@ status_t CursorSet::FindCursor(cursor_which which, ServerCursor **cursor)
return B_ERROR;
}
/*!
\brief Returns the name of the set
\return The name of the set
*/
const char *CursorSet::GetName(void)
{
BString name;
if(FindString("name",&name)==B_OK)
return name.String();
return NULL;
}
/*!
\brief Renames the cursor set
\param name new name of the set.
This function will fail if given a NULL name
*/
void CursorSet::Rename(const char *name)
void CursorSet::SetName(const char *name)
{
if(!name)
return;