Typedefs | |
| typedef void * | NOSGENERICHANDLE_t |
| typedef void * | NOSREGQHANDLE_t |
Enumerations | |
| enum | NOSREGTYPE_t { REGTYPE_TASK = 0, REGTYPE_SEMAPHORE, REGTYPE_MUTEX, REGTYPE_FLAG, REGTYPE_TIMER, REGTYPE_USER, REGTYPE_SEARCHALL } |
Functions | |
| NANOEXT NOSGENERICHANDLE_t | nosGetHandleByName (NOSREGTYPE_t objtype, const char *objname) |
| NANOEXT VAR_t | nosGetNameByHandle (NOSGENERICHANDLE_t handle, char *buffer, VAR_t bufsize, NOSREGTYPE_t what) |
| NANOEXT VAR_t | nosRegSet (const char *keyname, KEYVALUE_t keyvalue) |
| NANOEXT VAR_t | nosRegGet (const char *keyname, KEYVALUE_t *keyvalue) |
| NANOEXT VAR_t | nosRegDel (const char *keyname) |
| NANOEXT NOSREGQHANDLE_t | nosRegQueryBegin (NOSREGTYPE_t type) |
| NANOEXT VAR_t | nosRegQueryElem (NOSREGQHANDLE_t qh, NOSGENERICHANDLE_t *genh, char *namebuf, VAR_t bufsize) |
| NANOEXT void | nosRegQueryEnd (NOSREGQHANDLE_t qh) |
Registry keys are short ASCII texts that are assigned to binary numbers like integers or pointers. pico]OS uses registry keys in two ways:
First, this keys are used to identify resources, such as tasks, semaphores and timers. So it is possible to create named semaphores, that are accessible by every program module that knows the name of the semaphore (the program module does not need to know the exact semaphore handle, the ASCII name is sufficiennt). Also with named resources it is possible to maintain a list of allocated resources, e.g. this resource list can be printed out to a shell window.
Second, registry keys can be used by an application to maintain a central storage with setup and configuration data. This is known as "the registry" in MS Windows operating systems.
|
|
Generic Handle |
|
|
Registry Query Handle. Every registry query uses an own handle to the registry system. |
|
|
Registry type |
|
||||||||||||
|
Registry function. Searches the registry for an object name and returns the handle that is assigned to the object. For example, somebody can get a semaphore handle by just knowing the semaphores name.
|
|
||||||||||||||||||||
|
Registry function. Searches the registry for a handle and returns the name of the objetct.
|
|
|
Registry function. Deletes a registry key string.
|
|
||||||||||||
|
Registry function. Returns the binary value that is assigned to a registry key. This function is the counterpart to function nosRegSet.
|
|
|
Registry function. Queries a list of registry keys. This function starts a new registry query.
|
|
||||||||||||||||||||
|
Registry function. Returns the next found element in a query.
|
|
|
Registry function. Finnishes a query. This function is the counterpart to nosRegQueryBegin.
|
|
||||||||||||
|
Registry function. Sets a key value or creates a new registry key string. This function is used to assign a binary value to a text string. If the user knows the text string, he can call nosRegGet to get the binary value that is associated with the text string.
|
1.4.6-NO