浏览代码

cmPrefs.h: Update comments

master
kevin 11 年前
父节点
当前提交
1728a83539
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      cmPrefs.h

+ 3
- 0
cmPrefs.h 查看文件

@@ -41,6 +41,9 @@ extern "C" {
41 41
   // Set 'fnName' to NULL to use cmFsAppName() as the pref file name.
42 42
   // Set 'fnExt' to NULL to use '.js' as the pref file extension.
43 43
   // 'cbFunc'  and 'cbDataPtr' are optional in both versions.
44
+  // 'pathPrefixStr' (optional) provides a prefix to be added to 
45
+  // the path of each preference variable. This can be used to separate
46
+  // preference data from other data in the preference file.
44 47
   cmPrRC_t cmPrefsInit(   cmCtx_t* ctx, cmPrH_t* hp, const cmChar_t* fnName, const cmChar_t* fnExt, cmPrefsOnChangeFunc_t cbFunc, void* cbDataPtr, const cmChar_t* pathPrefixStr );
45 48
   cmPrRC_t cmPrefsInitialize( cmCtx_t* ctx, cmPrH_t* hp, const cmChar_t* fn, cmPrefsOnChangeFunc_t cbFunc, void* cbDataPtr, const cmChar_t* pathPrefixStr);
46 49
   cmPrRC_t cmPrefsFinalize(   cmPrH_t* hp );

正在加载...
取消
保存