Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Using private non-native settings

Follow these steps to add a private non-native settings store to your component:

  1. Write a component that implements the ISettings interface.
  2. Add code to your application or component to access the settings: For example:
    {
       ISettings *piSettings = NULL;
       if (SUCCESS == IEnv_CreateInstance(piEnv, , (void**)
                &piSettings)) {
          int nChildren = 0;
          int result;
          result = ISettings_GetNumChildren(piSettings,
                   "/path/to/my/settings", &nChildren);
          if (SUCCESS == result) {
             // do something
          }
          ISettings_Release(piSettings);
          pSettings = NULL;
       }
    }