dump.c (f7ad538e1ea130c8b6f3abb06ad6c856242c799e) | dump.c (a30ecde6e795682d1473c45acae66a60a76fca2f) |
---|---|
1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 132 unchanged lines hidden (view full) --- 141 142 qemu_get_timedate(&tm, 0); 143 s->start_ts = mktime(&tm); 144 145 return 0; 146} 147 148int net_init_dump(const NetClientOptions *opts, const char *name, | 1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 132 unchanged lines hidden (view full) --- 141 142 qemu_get_timedate(&tm, 0); 143 s->start_ts = mktime(&tm); 144 145 return 0; 146} 147 148int net_init_dump(const NetClientOptions *opts, const char *name, |
149 NetClientState *peer) | 149 NetClientState *peer, Error **errp) |
150{ | 150{ |
151 /* FIXME error_setg(errp, ...) on failure */ |
|
151 int len; 152 const char *file; 153 char def_file[128]; 154 const NetdevDumpOptions *dump; 155 156 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_DUMP); 157 dump = opts->dump; 158 --- 27 unchanged lines hidden --- | 152 int len; 153 const char *file; 154 char def_file[128]; 155 const NetdevDumpOptions *dump; 156 157 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_DUMP); 158 dump = opts->dump; 159 --- 27 unchanged lines hidden --- |