Changeset 550ed86 in mainline for uspace/lib/tbarcfg/src/tbarcfg.c
- Timestamp:
- 2023-12-19T17:25:58Z (17 months ago)
- Branches:
- master, topic/simplify-dev-export
- Children:
- 7130754
- Parents:
- f87ff8e
- git-author:
- Jiri Svoboda <jiri@…> (2023-12-19 17:19:18)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-12-19 17:25:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/tbarcfg/src/tbarcfg.c
rf87ff8e r550ed86 154 154 } 155 155 156 rc = smenu_entry_new(tbcfg, nentry, caption, cmd );156 rc = smenu_entry_new(tbcfg, nentry, caption, cmd, NULL); 157 157 if (rc != EOK) 158 158 goto error; … … 325 325 * @param caption Caption 326 326 * @param cmd Command to run 327 * @param rentry Place to store pointer to new entry or @c NULL 327 328 */ 328 329 errno_t smenu_entry_new(tbarcfg_t *smenu, sif_node_t *nentry, 329 const char *caption, const char *cmd )330 const char *caption, const char *cmd, smenu_entry_t **rentry) 330 331 { 331 332 smenu_entry_t *entry; … … 354 355 entry->smenu = smenu; 355 356 list_append(&entry->lentries, &smenu->entries); 357 if (rentry != NULL) 358 *rentry = entry; 356 359 return EOK; 357 360 error: … … 388 391 * @param caption Caption 389 392 * @param cmd Command to run 393 * @param rentry Place to store pointer to new entry or @c NULL 390 394 */ 391 395 errno_t smenu_entry_create(tbarcfg_t *smenu, const char *caption, 392 const char *cmd )396 const char *cmd, smenu_entry_t **rentry) 393 397 { 394 398 sif_node_t *nentry; 399 smenu_entry_t *entry; 395 400 errno_t rc; 396 401 sif_trans_t *trans = NULL; … … 413 418 goto error; 414 419 415 rc = smenu_entry_new(smenu, nentry, caption, cmd );420 rc = smenu_entry_new(smenu, nentry, caption, cmd, &entry); 416 421 if (rc != EOK) 417 422 goto error; … … 421 426 goto error; 422 427 428 if (rentry != NULL) 429 *rentry = entry; 423 430 return EOK; 424 431 error:
Note:
See TracChangeset
for help on using the changeset viewer.