Changeset b713ff80 in mainline


Ignore:
Timestamp:
2012-06-01T19:06:17Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d92c1ca
Parents:
77ad86c
Message:

cstyle (no change in functionality)

Location:
uspace/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/hw/misc/virtchar1.c

    r77ad86c rb713ff80  
    4848#include "../../tester.h"
    4949
    50 #define DEVICE_PATH_NORMAL "/loc/devices/\\virt\\null\\a"
    51 #define BUFFER_SIZE 64
     50#define DEVICE_PATH_NORMAL  "/loc/devices/\\virt\\null\\a"
     51
     52#define BUFFER_SIZE  64
    5253
    5354static const char *test_virtchar1_internal(const char *path)
     
    6566       
    6667        TPRINTF("   ...file handle %d\n", fd);
    67 
     68       
    6869        TPRINTF(" Asking for session...\n");
    6970        async_sess_t *sess = fd_session(EXCHANGE_SERIALIZE, fd);
     
    9697
    9798const char *test_virtchar1(void)
    98 {;
    99         const char *res;
    100 
    101         res = test_virtchar1_internal(DEVICE_PATH_NORMAL);
    102         if (res != NULL) {
     99{
     100        const char *res = test_virtchar1_internal(DEVICE_PATH_NORMAL);
     101        if (res != NULL)
    103102                return res;
    104         }
    105 
     103       
    106104        return NULL;
    107105}
  • uspace/app/trace/proto.h

    r77ad86c rb713ff80  
    4444typedef struct {
    4545        const char *name;
    46 
     46       
    4747        int argc;
    4848        val_type_t arg_type[OPER_MAX_ARGS];
    49 
     49       
    5050        val_type_t rv_type;
    51 
     51       
    5252        int respc;
    5353        val_type_t resp_type[OPER_MAX_ARGS];
     
    5757        /** Protocol name */
    5858        const char *name;
    59 
     59       
    6060        /** Maps method number to operation */
    6161        hash_table_t method_oper;
     
    6565extern hash_table_t srv_proto;
    6666
    67 void proto_init(void);
    68 void proto_cleanup(void);
     67extern void proto_init(void);
     68extern void proto_cleanup(void);
    6969
    70 void proto_register(int srv, proto_t *proto);
    71 proto_t *proto_get_by_srv(int srv);
    72 proto_t *proto_new(const char *name);
    73 void proto_delete(proto_t *proto);
    74 void proto_add_oper(proto_t *proto, int method, oper_t *oper);
    75 oper_t *proto_get_oper(proto_t *proto, int method);
     70extern void proto_register(int, proto_t *);
     71extern proto_t *proto_get_by_srv(int);
     72extern proto_t *proto_new(const char *);
     73extern void proto_delete(proto_t *);
     74extern void proto_add_oper(proto_t *, int, oper_t *);
     75extern oper_t *proto_get_oper(proto_t *, int);
    7676
    77 oper_t *oper_new(const char *name, int argc, val_type_t *arg_types,
    78     val_type_t rv_type, int respc, val_type_t *resp_types);
    79 
    80 
     77extern oper_t *oper_new(const char *, int, val_type_t *, val_type_t, int,
     78    val_type_t *);
    8179
    8280#endif
Note: See TracChangeset for help on using the changeset viewer.