Hi,

Looking at some bugs that we have in the UI, I'm wondering a couple of things
about locations:

1) How to determine if a location is destroyable

   I can't see an obvious API call that tells me if a location is destroyable
   or not, should I just assume based on the name?

   It would be good if I could tell up-front in a consistent manner. The
   only way I can see now is to use the macro:

        #define NWAM_LOC_NAME_PRE_DEFINED(name) \
                        (strcmp(name, NWAM_LOC_NAME_AUTOMATIC) == 0 || \
                        strcmp(name, NWAM_LOC_NAME_NO_NET) == 0 || \
                        strcmp(name, NWAM_LOC_NAME_LEGACY) == 0)

    and assume that such a pre-defined location is non-destroyable, is this ok
    to assume?
        
2) Are such locations modifiable?


   It would seem that it's possible to actually make changes to the Automatic,
   NoNet and Legacy locations using nwamcfg - but it seems wrong to allow such
   core locations to be modifiable...

   Is this correct/intentional?

   There is no API to such as nwam_loc_get_read_only - so I'm guessing that
   it's intentional, but would like to confirm...

Thanks,

Darren.

Reply via email to