The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
time_tracking.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15  */
16 
17 /**
18  * $Id: da5497cdc82f01b50d6a1ec5c41ca2f171f25daa $
19  *
20  * @brief Simple ring buffers for packet contents
21  * @file io/time_tracking.c
22  *
23  * @copyright 2024 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
24  */
25 RCSID("$Id: da5497cdc82f01b50d6a1ec5c41ca2f171f25daa $")
26 
27 #include <freeradius-devel/server/time_tracking.h>
28 
30  { L("STOPPED"), FR_TIME_TRACKING_STOPPED },
31  { L("RUNNING"), FR_TIME_TRACKING_RUNNING },
32  { L("YIELDED"), FR_TIME_TRACKING_YIELDED },
33 };
#define RCSID(id)
Definition: build.h:481
#define L(_str)
Helper for initialising arrays of string literals.
Definition: build.h:207
#define NUM_ELEMENTS(_t)
Definition: build.h:335
An element in an arbitrarily ordered array of name to num mappings.
Definition: table.h:57
size_t fr_time_tracking_state_table_len
Definition: time_tracking.c:34
fr_table_num_ordered_t fr_time_tracking_state_table[]
Definition: time_tracking.c:29
@ FR_TIME_TRACKING_YIELDED
We're currently tracking time in the yielded state.
Definition: time_tracking.h:44
@ FR_TIME_TRACKING_STOPPED
Time tracking is not running.
Definition: time_tracking.h:41
@ FR_TIME_TRACKING_RUNNING
We're currently tracking time in the running state.
Definition: time_tracking.h:42