summaryrefslogtreecommitdiff
path: root/cesar/interface/inc/interface.h
blob: aec0877ff464189e45cc5bac87809b0bb7b344b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef interface_inc_interface_h
#define interface_inc_interface_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    interface/inc/interface.h
 * \brief   Interface private functions. 
 * \ingroup interface
 *
 */

#include "interface/interface.h"

/**
 * The buffer shall be provided to the CP.
 * \param ctx the interface context.
 * \param buffer the buffer to add.
 */
void
interface_buffer_add (interface_t *ctx, u8 *buffer);

/** 
 * Add a buffer to its own list.
 * \param  ctx the interface context.
 * \param  buffer  the buffer to add
 */
void
interface_buffer_work_add (interface_t *ctx, u8 *buffer);

/** 
 * Get a buffer from the list.
 * \param  ctx the interface context.
 * \return  the buffer to use, NULL if no buffer is available.
 */
u8*
interface_buffer_work_get (interface_t *ctx);

#endif /* interface_inc_interface_h */