summaryrefslogtreecommitdiffstats
path: root/branches/1.0/tinySIGCOMP/src/tcomp_nackinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/tinySIGCOMP/src/tcomp_nackinfo.h')
-rw-r--r--branches/1.0/tinySIGCOMP/src/tcomp_nackinfo.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/branches/1.0/tinySIGCOMP/src/tcomp_nackinfo.h b/branches/1.0/tinySIGCOMP/src/tcomp_nackinfo.h
deleted file mode 100644
index 57e742b..0000000
--- a/branches/1.0/tinySIGCOMP/src/tcomp_nackinfo.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO 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 General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file tcomp_nackinfo.h
- * @brief RFC 4077 - A Negative Acknowledgement Mechanism for Signaling Compression (NACK)
- *
- * @author Mamadou Diop <diopmamadou(at)yahoo.fr>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TCOMP_NAKINFO_H
-#define TCOMP_NAKINFO_H
-
-#include "tinysigcomp_config.h"
-#include "tcomp_buffer.h"
-#include "tsk_sha1.h"
-#include "tsk_object.h"
-
-TCOMP_BEGIN_DECLS
-
-/*
-+---+---+---+---+---+---+---+---+
-| code_len = 0 |
-+---+---+---+---+---+---+---+---+
-| code_len = 0 | version = 1 |
-+---+---+---+---+---+---+---+---+
-| Reason Code |
-+---+---+---+---+---+---+---+---+
-| OPCODE of failed instruction |
-+---+---+---+---+---+---+---+---+
-| PC of failed instruction |
-| |
-+---+---+---+---+---+---+---+---+
-| |
-: SHA-1 Hash of failed message :
-| |
-+---+---+---+---+---+---+---+---+
-| |
-: Error Details :
-| |
-+---+---+---+---+---+---+---+---+
-*/
-/**NACK info as per rfc 4077 subclause 3.1.
-* You MUST use @ref tcomp_nackinfo_create() to create new nackinfo object.
-*/
-typedef struct tcomp_nackinfo_s
-{
- TSK_DECLARE_OBJECT;
-
- uint8_t version; /**< Gives the version of the NACK mechanism being employed. */
- uint8_t reasonCode; /**< The Reason Code is a one-byte value that indicates the nature of the decompression failure. */
- uint8_t opcode; /**< The "OPCODE of failed instruction" is a one-byte field that includes the opcode to which the PC was pointing when the failure occurred */
- uint16_t pc; /**< "PC of failed instruction" is a two-byte field containing the value of the program counter when failure occurred (i.e., the memory address of the failed UDVM instruction) */
- uint8_t sha1[TSK_SHA1_DIGEST_SIZE]; /**<"SHA-1 Hash of failed message" contains the full 20-byte SHA-1 hash of the SigComp message that could not be decompressed */
- tcomp_buffer_handle_t *details; /**< "Error Details" provides additional information that might be useful in correcting the problem that caused decompression failure.*/
-}
-tcomp_nackinfo_t;
-
-tcomp_nackinfo_t* tcomp_nackinfo_create();
-
-TINYSIGCOMP_GEXTERN const tsk_object_def_t *tcomp_nackinfo_def_t;
-
-TCOMP_END_DECLS
-
-#endif /* TCOMP_NAKINFO_H */
OpenPOWER on IntegriCloud