Changeset 6e596bd in mainline


Ignore:
Timestamp:
2012-08-17T10:04:49Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf9ac4e8
Parents:
b1912b0c
Message:

Enum renaming

Location:
uspace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/log.c

    rb1912b0c r6e596bd  
    145145                return ENOMEM;
    146146
    147         logger_session = service_connect_blocking(EXCHANGE_SERIALIZE, SERVICE_LOGGER, LOGGER_INTERFACE_SINK, 0);
     147        logger_session = service_connect_blocking(EXCHANGE_SERIALIZE, SERVICE_LOGGER, LOGGER_INTERFACE_WRITER, 0);
    148148        if (logger_session == NULL) {
    149149                return ENOMEM;
  • uspace/lib/c/generic/io/logctl.c

    rb1912b0c r6e596bd  
    7474
    7575        rc = (int) async_req_1_0(exchange,
    76             LOGGER_CTL_SET_DEFAULT_LEVEL, new_level);
     76            LOGGER_CONTROL_SET_DEFAULT_LEVEL, new_level);
    7777
    7878        async_exchange_end(exchange);
     
    8888                return rc;
    8989
    90         aid_t reg_msg = async_send_1(exchange, LOGGER_CTL_SET_LOG_LEVEL,
     90        aid_t reg_msg = async_send_1(exchange, LOGGER_CONTROL_SET_LOG_LEVEL,
    9191            new_level, NULL);
    9292        rc = async_data_write_start(exchange, logname, str_size(logname));
  • uspace/lib/c/include/ipc/logger.h

    rb1912b0c r6e596bd  
    3737
    3838typedef enum {
    39         LOGGER_CTL_SET_DEFAULT_LEVEL = IPC_FIRST_USER_METHOD,
    40         LOGGER_CTL_SET_LOG_LEVEL
     39        LOGGER_CONTROL_SET_DEFAULT_LEVEL = IPC_FIRST_USER_METHOD,
     40        LOGGER_CONTROL_SET_LOG_LEVEL
    4141} logger_control_request_t;
    4242
     
    4848
    4949typedef enum {
    50          LOGGER_CONNECT = IPC_FIRST_USER_METHOD,
    51          LOGGER_GET_MESSAGE
    52 } logger_source_request_t;
    53 
    54 typedef enum {
    5550        /** Interface for controlling logger behavior. */
    5651        LOGGER_INTERFACE_CONTROL,
    5752        /** Interface for servers writing to the log. */
    58         LOGGER_INTERFACE_SINK,
    59         /** Interface for clients displaying the log. */
    60         LOGGER_INTERFACE_SOURCE
     53        LOGGER_INTERFACE_WRITER
    6154} logger_interface_t;
    6255
  • uspace/srv/logger/ctl.c

    rb1912b0c r6e596bd  
    7474
    7575                switch (IPC_GET_IMETHOD(call)) {
    76                 case LOGGER_CTL_SET_DEFAULT_LEVEL: {
     76                case LOGGER_CONTROL_SET_DEFAULT_LEVEL: {
    7777                        int rc = set_default_logging_level(IPC_GET_ARG1(call));
    7878                        async_answer_0(callid, rc);
    7979                        break;
    8080                }
    81                 case LOGGER_CTL_SET_LOG_LEVEL: {
     81                case LOGGER_CONTROL_SET_LOG_LEVEL: {
    8282                        int rc = handle_log_level_change(IPC_GET_ARG1(call));
    8383                        async_answer_0(callid, rc);
  • uspace/srv/logger/main.c

    rb1912b0c r6e596bd  
    5656                logger_connection_handler_control(iid);
    5757                break;
    58         case LOGGER_INTERFACE_SINK:
     58        case LOGGER_INTERFACE_WRITER:
    5959                logger_connection_handler_writer(iid);
    6060                break;
Note: See TracChangeset for help on using the changeset viewer.