diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-18 20:18:32 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-18 20:27:32 +0200 |
commit | 0f2e0378348f87c8e408a1db59783e1d9c00d68d (patch) | |
tree | cfe997e702005f4ef7986d08d0299b4b80bc00ef /server/demarshallers.h | |
parent | 972951dbb78ecb8b9b7549a1302a49a00ad1b44b (diff) | |
download | spice-0f2e0378348f87c8e408a1db59783e1d9c00d68d.tar.gz spice-0f2e0378348f87c8e408a1db59783e1d9c00d68d.tar.xz spice-0f2e0378348f87c8e408a1db59783e1d9c00d68d.zip |
Add server/demarshaller.h
Diffstat (limited to 'server/demarshallers.h')
-rw-r--r-- | server/demarshallers.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/server/demarshallers.h b/server/demarshallers.h new file mode 100644 index 00000000..e568cd0d --- /dev/null +++ b/server/demarshallers.h @@ -0,0 +1,25 @@ +/* + Copyright (C) 2010 Red Hat, Inc. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ +#ifndef _H_DEMARSHAL +#define _H_DEMARSHAL + +typedef uint8_t * (*spice_parse_channel_func_t)(uint8_t *message_start, uint8_t *message_end, uint16_t message_type, int minor, size_t *size_out); + +spice_parse_channel_func_t spice_get_client_channel_parser(uint32_t channel, unsigned int *max_message_type); + +#endif + |