Changeset 5caad1d in mainline
- Timestamp:
- 2025-06-20T18:59:58Z (10 hours ago)
- Branches:
- master
- Children:
- 235bd1f, f0cc1c64
- Parents:
- cb20b05
- Location:
- uspace/lib/tbarcfg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/tbarcfg/private/tbarcfg.h
rcb20b05 r5caad1d 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 39 39 40 40 #include <adt/list.h> 41 #include <loc.h> 41 42 #include <stdbool.h> 42 43 #include <types/tbarcfg/tbarcfg.h> … … 68 69 /** Taskbar configuration listener */ 69 70 typedef struct tbarcfg_listener { 71 /** Async port */ 72 port_id_t portid; 73 /** Registered server */ 74 loc_srv_t *srv; 75 /** Registered service */ 76 service_id_t svcid; 70 77 /** Notification callback */ 71 78 void (*cb)(void *); -
uspace/lib/tbarcfg/src/tbarcfg.c
rcb20b05 r5caad1d 671 671 goto error; 672 672 673 free(svcname); 674 svcname = NULL; 675 673 676 rc = loc_category_get_id(nchan, &catid, 0); 674 677 if (rc != EOK) … … 679 682 goto error; 680 683 684 lst->portid = port; 685 lst->srv = srv; 686 lst->svcid = svcid; 681 687 *rlst = lst; 682 688 return EOK; … … 699 705 void tbarcfg_listener_destroy(tbarcfg_listener_t *lst) 700 706 { 707 loc_service_unregister(lst->srv, lst->svcid); 708 loc_server_unregister(lst->srv); 709 async_port_destroy(lst->portid); 701 710 free(lst); 702 711 }
Note:
See TracChangeset
for help on using the changeset viewer.