Changeset 3529f148 in mainline for uspace/lib/c/include/ipc/common.h


Ignore:
Timestamp:
2020-03-06T19:14:20Z (4 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
13b4504
Parents:
06599a1
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-02-29 11:22:13)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-03-06 19:14:20)
Message:

Adding types task_wait_flag_t and ipc_start_flag_t which replaces makros

File:
1 edited

Legend:

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

    r06599a1 r3529f148  
    4141/* Well known phone descriptors */
    4242static cap_phone_handle_t const PHONE_INITIAL = (cap_phone_handle_t) (CAP_NIL + 1);
    43 #define IPC_FLAG_BLOCKING   0x01
    4443
    45 /**
    46  * IPC_FLAG_AUTOSTART_ is for use in brokers only. In client code use
    47  * IPC_AUTOSTART that includes implies blocking behavior.
    48  */
    49 #define IPC_FLAG_AUTOSTART_  0x02
     44typedef enum {
     45        /**
     46         * IPC_FLAG_AUTOSTART_ is for use in brokers only. In client code use
     47         * IPC_AUTOSTART that includes implies blocking behavior.
     48         */
     49        IPC_FLAG_BLOCKING = 0x01,
     50        IPC_FLAG_AUTOSTART_ = 0x02,
    5051
    51 /**
    52  * Similar to blocking IPC_FLAG_BLOCKING behavior, broker will attempt to
    53  * start the server.
    54  */
    55 #define IPC_AUTOSTART (IPC_FLAG_BLOCKING | IPC_FLAG_AUTOSTART_)
     52        /**
     53         * Similar to blocking IPC_FLAG_BLOCKING behavior, broker will attempt to
     54         * start the server.
     55         */
     56        IPC_AUTOSTART = (IPC_FLAG_BLOCKING | IPC_FLAG_AUTOSTART_),
     57} ipc_start_flag_t;
    5658
    5759typedef ipc_data_t ipc_call_t;
Note: See TracChangeset for help on using the changeset viewer.