Back to index

im-sdk  12.3.91
Functions
im-invalid-message.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <iiimp-data.h>
#include "iiimp-dataP.h"

Go to the source code of this file.

Functions

void iiimp_invalid_message_delete (IIIMP_data_s *data_s, IIIMP_message *m)
uchar_t * iiimp_invalid_message_pack (IIIMP_data_s *data_s, IIIMP_message *opcode, size_t *buf_size)
IIIMP_messageiiimp_invalid_message_unpack (IIIMP_data_s *data_s, IIIMP_card7 opcode, size_t *nbyte, const uchar_t **ptr)
void iiimp_invalid_message_print (IIIMP_data_s *data_s, IIIMP_message *m)

Function Documentation

void iiimp_invalid_message_delete ( IIIMP_data_s *  data_s,
IIIMP_message m 
)

Definition at line 12 of file im-invalid-message.c.

{
    return;
}
uchar_t* iiimp_invalid_message_pack ( IIIMP_data_s *  data_s,
IIIMP_message opcode,
size_t *  buf_size 
)

Definition at line 20 of file im-invalid-message.c.

{
    data_s->status = IIIMP_DATA_INVALID;
    return NULL;
}
void iiimp_invalid_message_print ( IIIMP_data_s *  data_s,
IIIMP_message m 
)

Definition at line 44 of file im-invalid-message.c.

{
    (void)fprintf(data_s->print_fp, "unknown message packet ");
    if (NULL == m) {
       (void)fprintf(data_s->print_fp, "(NULL)\n");
    } else {
       (void)fprintf(data_s->print_fp, "(%d)\n", m->opcode);
    }
}
IIIMP_message* iiimp_invalid_message_unpack ( IIIMP_data_s *  data_s,
IIIMP_card7  opcode,
size_t *  nbyte,
const uchar_t **  ptr 
)

Definition at line 32 of file im-invalid-message.c.

{
    data_s->status = IIIMP_DATA_INVALID;
    return NULL;
}