summaryrefslogtreecommitdiff
path: root/src/lib/spy/spy_line.c
blob: 6f1b8009e197c9aa8d05a6ad48bcadfb6c86a185 (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
#include "spy_private.h"

/**
 * @addtogroup Lib-Spy-Functions
 * @{
 */

/**
 * @brief Returns the line parsed by spy.
 * @param sl Spy_Line structure.
 * @return Pointer to parsed line.
 *
 * The pointer returned is the internal pointer of the Spy_Line,
 * so, do not free it!
 */
const char *
spy_line_get(Spy_Line *sl)
{
   return sl->line;
}

/**
 * @brief Return the Spy_File of a Spy_Line.
 * @param sl Spy_Line structure.
 * @return Pointer to the Spy_File structure.
 */
Spy_File *
spy_line_spyfile_get(Spy_Line *sl)
{
   return sl->sf;
}

/**
 * @}
 */