Logo Search packages:      
Sourcecode: kcov version File versions  Download package

kc_addr.c

/*
 * Copyright (C) 2010 Simon Kagstrom, Thomas Neumann
 *
 * See COPYING for license details
 */
#include <kc_addr.h>
#include <utils.h>
#include <arpa/inet.h>

struct kc_addr *kc_addr_new(unsigned long addr)
{
      struct kc_addr *out = xmalloc(sizeof(struct kc_addr));

      out->hits = 0;
      out->addr = addr;
      out->saved_code = 0;

      return out;
}

void kc_addr_register_hit(struct kc_addr *addr)
{
      addr->hits++;
}

void kc_addr_marshall(struct kc_addr *addr)
{
      /* Store natively for now. In the future we should
       * byteswap these */
}

void kc_addr_unmarshall(struct kc_addr *addr)
{
}

Generated by  Doxygen 1.6.0   Back to index