Changeset 12f9f0d0 in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2011-08-17T13:39:53Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e280857
Parents:
45058baa
Message:

Notifications on changes in loc categories. Limitations:

  • cannot specify single category to watch
  • max one task can register notifications with loc service
  • max one user callback function can be registered with C library

Remove devman tests as they are not applicable anymore.

Location:
uspace/lib/c/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/loc.h

    r45058baa r12f9f0d0  
    5757        LOC_SERVICE_GET_NAME,
    5858        LOC_NAMESPACE_GET_ID,
     59        LOC_CALLBACK_CREATE,
    5960        LOC_CATEGORY_GET_ID,
    6061        LOC_CATEGORY_GET_SVCS,
     
    6869        LOC_GET_SERVICES
    6970} loc_request_t;
     71
     72typedef enum {
     73        LOC_EVENT_CAT_CHANGE = IPC_FIRST_USER_METHOD
     74} loc_event_t;
    7075
    7176/** Ports provided by location service.
  • uspace/lib/c/include/loc.h

    r45058baa r12f9f0d0  
    4040#include <bool.h>
    4141
     42typedef void (*loc_cat_change_cb_t)(void);
     43
    4244extern async_exch_t *loc_exchange_begin_blocking(loc_interface_t);
    4345extern async_exch_t *loc_exchange_begin(loc_interface_t);
     
    7375extern size_t loc_get_services(service_id_t, loc_sdesc_t **);
    7476extern int loc_get_categories(category_id_t **, size_t *);
     77extern int loc_register_cat_change_cb(loc_cat_change_cb_t);
    7578
    7679
Note: See TracChangeset for help on using the changeset viewer.