uses enum
[scilab.git] / scilab / modules / output_stream / src / cpp / diary_manager.cpp
index 5003ebd..3e1a899 100644 (file)
@@ -266,7 +266,7 @@ int diaryWriteln(wchar_t *wstr, BOOL bInput)
        return 1;
 }
 /*--------------------------------------------------------------------------*/
-int diarySetFilterMode(int _iId, int mode)
+int diarySetFilterMode(int _iId, diary_filter mode)
 {
        if (SCIDIARY)
        {
@@ -276,7 +276,7 @@ int diarySetFilterMode(int _iId, int mode)
        return 1;
 }
 /*--------------------------------------------------------------------------*/
-int diarySetPrefixMode(int ID_diary,int iPrefixMode)
+int diarySetPrefixMode(int ID_diary,diary_prefix_time_format iPrefixMode)
 {
        if (SCIDIARY)
        {
@@ -295,7 +295,7 @@ int diaryGetPrefixMode(int ID_diary)
        return -1;
 }
 /*--------------------------------------------------------------------------*/
-int diarySetPrefixIoModeFilter(int ID_diary,int mode)
+int diarySetPrefixIoModeFilter(int ID_diary,diary_prefix_time_filter mode)
 {
        if (SCIDIARY)
        {
@@ -305,12 +305,12 @@ int diarySetPrefixIoModeFilter(int ID_diary,int mode)
        return 1;
 }
 /*--------------------------------------------------------------------------*/
-int diaryGetPrefixIoModeFilter(int ID_diary)
+diary_prefix_time_filter diaryGetPrefixIoModeFilter(int ID_diary)
 {
        if (SCIDIARY)
        {
                return SCIDIARY->getPrefixIoModeFilter(ID_diary);
        }
-       return -1;
+       return PREFIX_FILTER_ERROR;
 }
 /*--------------------------------------------------------------------------*/