Doxygen for haiku.h/haiku.cpp

This commit is contained in:
Thomas Bernard
2018-11-20 14:34:23 +01:00
parent 8e4abd357b
commit 6a575ed491
3 changed files with 22 additions and 10 deletions

View File

@@ -17,8 +17,12 @@
You should have received a copy of the GNU General Public License
along with Grafx2; if not, see <http://www.gnu.org/licenses/>
*/
#include "struct.h"
/** @file haiku.cpp
* Definition of Haiku specific functions.
*
* Haiku API is C++, so this is C++ code exporting as C symbols
* to be called by GrafX2 C code.
*/
#ifdef __HAIKU__
#include <Clipboard.h>
#include <Entry.h>
@@ -26,8 +30,7 @@
#include <string.h>
extern "C" qword haiku_get_free_space(char* path);
extern "C" char* haiku_get_clipboard();
#include "haiku.h"
qword haiku_get_free_space(char* path)
{
@@ -38,6 +41,9 @@ qword haiku_get_free_space(char* path)
return (qword) disk.Capacity();
}
/**
* @return NULL or a string that should be free()'d by the caller
*/
char* haiku_get_clipboard()
{
if (be_clipboard->Lock())