@@ -86,19 +86,39 @@ int ti_Close(const ti_var_t slot);
86
86
* Returns the name of the file(s) that contains the string as the first part of the variable;
87
87
* which can then be used with ti_Open and other functions
88
88
*
89
- * seach_pos should be set to NULL to begin a search, and is then updated with each call
89
+ * seach_pos should be set to NULL to begin a search, and is updated with each call
90
90
*
91
91
* @code
92
- * uint8_t *search_pos = NULL;
93
92
* char *var_name;
94
- * while((var_name = ti_Detect( &search_pos, "my_data" )) != NULL) {
93
+ * uint8_t *search_pos = NULL;
94
+ * while((var_name = ti_Detect(&search_pos, "my_data")) != NULL) {
95
95
* ...do something with the name or search_pos...
96
96
* }
97
97
* @endcode
98
- * @note If the return value is NULL, either the variable wasn't found in the current search span, or there are no more variables to find
99
- * @note If detection_string is NULL, return is NULL as well
98
+ * @param curr_search_posistion Current offset in the VAT
99
+ * @param detection_string String to search for (NULL to search for all)
100
+ * @note If the return value is NULL, there are no more variables to find
100
101
*/
101
102
char * ti_Detect (void * * curr_search_posistion , const char * detection_string );
103
+
104
+ /**
105
+ * Returns the name of the file(s) that contains the string as the first part of the variable;
106
+ * which can then be used with ti_OpenVar and other functions
107
+ *
108
+ * seach_pos should be set to NULL to begin a search, and is updated with each call
109
+ *
110
+ * @code
111
+ * char *var_name;
112
+ * uint8_t *search_pos = NULL;
113
+ * while((var_name = ti_Detect(&search_pos, "my_data", TI_PRGM_TYPE)) != NULL) {
114
+ * ...do something with the name or search_pos...
115
+ * }
116
+ * @endcode
117
+ * @param curr_search_posistion Current offset in the VAT
118
+ * @param detection_string String to search for (NULL to search for all)
119
+ * @param var_type Type of variable to detect
120
+ * @note If the return value is NULL, there are no more variables to find
121
+ */
102
122
char * ti_DetectVar (void * * curr_search_posistion , const char * detection_string , uint8_t var_type );
103
123
104
124
/**
@@ -416,3 +436,4 @@ equ_t *ti_AllocEqu(unsigned len, void (*malloc_routine)(size_t));
416
436
#define ti_AppVar TI_APPVAR_TYPE
417
437
418
438
#endif
439
+
0 commit comments