Changeset abf3564 in mainline for uspace/app/trace/proto.c


Ignore:
Timestamp:
2008-09-18T22:19:42Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f7176b1
Parents:
073c9e6
Message:

trace: Decode protocol-level call arguments, response retvals and arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/proto.c

    r073c9e6 rabf3564  
    3838#include <libadt/hash_table.h>
    3939
     40#include "trace.h"
    4041#include "proto.h"
    4142
     
    210211}
    211212
    212 oper_t *oper_new(char *name)
     213oper_t *oper_new(char *name, int argc, val_type_t *arg_types,
     214    val_type_t rv_type, int respc, val_type_t *resp_types)
    213215{
    214216        oper_t *o;
     217        int i;
    215218
    216219        o = malloc(sizeof(oper_t));
    217220        oper_struct_init(o, name);
    218221
     222        o->argc = argc;
     223        for (i = 0; i < argc; i++)
     224                o->arg_type[i] = arg_types[i];
     225
     226        o->rv_type = rv_type;
     227
     228        o->respc = respc;
     229        for (i = 0; i < respc; i++)
     230                o->resp_type[i] = resp_types[i];
     231
    219232        return o;
    220233}
Note: See TracChangeset for help on using the changeset viewer.