Changeset f9b2cb4c in mainline for uspace/lib/c/include/ipc


Ignore:
Timestamp:
2015-08-23T12:50:23Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef495f
Parents:
0dd16778
Message:

unify interface API

  • introduce new interfaces
  • unify location service clients to always expect service ID as the second argument
  • remove obsolete methods that take explicit exchange management arguments (first phase)
  • use interfaces in device drivers, devman, location service, logger, inet
Location:
uspace/lib/c/include/ipc
Files:
1 deleted
5 edited

Legend:

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

    r0dd16778 rf9b2cb4c  
    141141
    142142typedef enum {
    143         DEVMAN_DRIVER = 1,
    144         DEVMAN_CLIENT,
    145         DEVMAN_CONNECT_TO_DEVICE,
    146         DEVMAN_CONNECT_TO_PARENTS_DEVICE
    147 } devman_interface_t;
    148 
    149 typedef enum {
    150143        DEVMAN_DRIVER_REGISTER = IPC_FIRST_USER_METHOD,
    151144        DEVMAN_ADD_FUNCTION,
  • uspace/lib/c/include/ipc/inet.h

    r0dd16778 rf9b2cb4c  
    3737
    3838#include <ipc/common.h>
    39 
    40 /** Inet ports */
    41 typedef enum {
    42         /** Default port */
    43         INET_PORT_DEFAULT = 1,
    44         /** Configuration port */
    45         INET_PORT_CFG,
    46         /** Ping service port */
    47         INET_PORT_PING,
    48         /** Ping6 service port */
    49         INET_PORT_PING6
    50 } inet_port_t;
    5139
    5240/** Requests on Inet default port */
  • uspace/lib/c/include/ipc/loc.h

    r0dd16778 rf9b2cb4c  
    7676} loc_event_t;
    7777
    78 /** Ports provided by location service.
    79  *
    80  * Every process that connects to loc must ask one of following
    81  * ports, otherwise connection will be refused.
    82  *
    83  */
    84 typedef enum {
    85         /** Service supplier (server) port */
    86         LOC_PORT_SUPPLIER = 1,
    87         /** Service consumer (client) port */
    88         LOC_PORT_CONSUMER,
    89         /** Create new connection to instance of device that
    90             is specified by second argument of call. */
    91         LOC_CONNECT_TO_SERVICE
    92 } loc_interface_t;
    93 
    9478typedef struct {
    9579        service_id_t id;
  • uspace/lib/c/include/ipc/logger.h

    r0dd16778 rf9b2cb4c  
    6969} logger_writer_request_t;
    7070
    71 typedef enum {
    72         /** Interface for controlling logger behavior. */
    73         LOGGER_INTERFACE_CONTROL,
    74         /** Interface for servers writing to the log. */
    75         LOGGER_INTERFACE_WRITER
    76 } logger_interface_t;
    77 
    7871#endif
    7972
  • uspace/lib/c/include/ipc/services.h

    r0dd16778 rf9b2cb4c  
    5252} service_t;
    5353
    54 #define SERVICE_NAME_CORECFG    "corecfg"
    55 #define SERVICE_NAME_DHCP       "net/dhcp"
    56 #define SERVICE_NAME_DNSR       "net/dnsr"
    57 #define SERVICE_NAME_INET       "net/inet"
    58 #define SERVICE_NAME_INETCFG    "net/inetcfg"
    59 #define SERVICE_NAME_INETPING   "net/inetping"
    60 #define SERVICE_NAME_INETPING6  "net/inetping6"
    61 #define SERVICE_NAME_NETCONF    "net/netconf"
    62 #define SERVICE_NAME_UDP        "net/udp"
    63 #define SERVICE_NAME_TCP        "net/tcp"
     54#define SERVICE_NAME_CORECFG  "corecfg"
     55#define SERVICE_NAME_DHCP     "net/dhcp"
     56#define SERVICE_NAME_DNSR     "net/dnsr"
     57#define SERVICE_NAME_INET     "net/inet"
     58#define SERVICE_NAME_NETCONF  "net/netconf"
     59#define SERVICE_NAME_UDP      "net/udp"
     60#define SERVICE_NAME_TCP      "net/tcp"
    6461
    6562#endif
Note: See TracChangeset for help on using the changeset viewer.