Changeset b713ff80 in mainline
- Timestamp:
- 2012-06-01T19:06:17Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d92c1ca
- Parents:
- 77ad86c
- Location:
- uspace/app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/hw/misc/virtchar1.c
r77ad86c rb713ff80 48 48 #include "../../tester.h" 49 49 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 52 53 53 54 static const char *test_virtchar1_internal(const char *path) … … 65 66 66 67 TPRINTF(" ...file handle %d\n", fd); 67 68 68 69 TPRINTF(" Asking for session...\n"); 69 70 async_sess_t *sess = fd_session(EXCHANGE_SERIALIZE, fd); … … 96 97 97 98 const 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) 103 102 return res; 104 } 105 103 106 104 return NULL; 107 105 } -
uspace/app/trace/proto.h
r77ad86c rb713ff80 44 44 typedef struct { 45 45 const char *name; 46 46 47 47 int argc; 48 48 val_type_t arg_type[OPER_MAX_ARGS]; 49 49 50 50 val_type_t rv_type; 51 51 52 52 int respc; 53 53 val_type_t resp_type[OPER_MAX_ARGS]; … … 57 57 /** Protocol name */ 58 58 const char *name; 59 59 60 60 /** Maps method number to operation */ 61 61 hash_table_t method_oper; … … 65 65 extern hash_table_t srv_proto; 66 66 67 void proto_init(void);68 void proto_cleanup(void);67 extern void proto_init(void); 68 extern void proto_cleanup(void); 69 69 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);70 extern void proto_register(int, proto_t *); 71 extern proto_t *proto_get_by_srv(int); 72 extern proto_t *proto_new(const char *); 73 extern void proto_delete(proto_t *); 74 extern void proto_add_oper(proto_t *, int, oper_t *); 75 extern oper_t *proto_get_oper(proto_t *, int); 76 76 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 77 extern oper_t *oper_new(const char *, int, val_type_t *, val_type_t, int, 78 val_type_t *); 81 79 82 80 #endif
Note:
See TracChangeset
for help on using the changeset viewer.