\doxysection{tdef\+\_\+vty.\+h}
\label{tdef__vty_8h_source}\index{include/osmocom/vty/tdef\_vty.h@{include/osmocom/vty/tdef\_vty.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{4 \textcolor{comment}{/* (C) 2018-\/2019 by sysmocom -\/ s.f.m.c. GmbH <info@sysmocom.de>}}
\DoxyCodeLine{5 \textcolor{comment}{ *}}
\DoxyCodeLine{6 \textcolor{comment}{ * Author: Neels Hofmeyr <neels@hofmeyr.de>}}
\DoxyCodeLine{7 \textcolor{comment}{ *}}
\DoxyCodeLine{8 \textcolor{comment}{ * All Rights Reserved}}
\DoxyCodeLine{9 \textcolor{comment}{ *}}
\DoxyCodeLine{10 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{11 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{12 \textcolor{comment}{ * the Free Software Foundation; either version 2 of the License, or}}
\DoxyCodeLine{13 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{14 \textcolor{comment}{ *}}
\DoxyCodeLine{15 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{16 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{17 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{18 \textcolor{comment}{ * GNU General Public License for more details.}}
\DoxyCodeLine{19 \textcolor{comment}{ *}}
\DoxyCodeLine{20 \textcolor{comment}{ * You should have received a copy of the GNU General Public License}}
\DoxyCodeLine{21 \textcolor{comment}{ * along with this program.  If not, see <http://www.gnu.org/licenses/>.}}
\DoxyCodeLine{22 \textcolor{comment}{ *}}
\DoxyCodeLine{23 \textcolor{comment}{ * SPDX-\/License-\/Identifier: GPL-\/2.0+}}
\DoxyCodeLine{24 \textcolor{comment}{ */}}
\DoxyCodeLine{25 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{28 \textcolor{preprocessor}{\#include <stdarg.h>}}
\DoxyCodeLine{29 }
\DoxyCodeLine{30 \textcolor{preprocessor}{\#include <osmocom/vty/command.h>}}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{keyword}{struct }vty;}
\DoxyCodeLine{33 }
\DoxyCodeLine{39 \textcolor{keyword}{struct }osmo\_tdef;}
\DoxyCodeLine{40 \textcolor{keyword}{struct }osmo\_tdef\_group;}
\DoxyCodeLine{41 }
\DoxyCodeLine{42 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_ARG\_T "{}TNNNN"{}}}
\DoxyCodeLine{43 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_DOC\_T \(\backslash\)}}
\DoxyCodeLine{44 \textcolor{preprocessor}{        "{}T-\/ or X-\/timer-\/number -\/-\/ 3GPP compliant timer number of the format '1234' or 'T1234' or 't1234';"{}} \(\backslash\)}
\DoxyCodeLine{45         "{} Osmocom-\/specific timer number of the format: 'X1234' or 'x1234'.\(\backslash\)n"{}}
\DoxyCodeLine{46 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_ARG\_T\_OPTIONAL "{}["{}} OSMO\_TDEF\_VTY\_ARG\_T "{}]"{}}
\DoxyCodeLine{47 }
\DoxyCodeLine{48 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_ARG\_VAL "{}(<0-\/2147483647>|default)"{}}}
\DoxyCodeLine{49 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_DOC\_VAL "{}New timer value\(\backslash\)n"{}} "{}Set to default timer value\(\backslash\)n"{}}
\DoxyCodeLine{50 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_ARG\_VAL\_OPTIONAL "{}["{}} OSMO\_TDEF\_VTY\_ARG\_VAL "{}]"{}}
\DoxyCodeLine{51 }
\DoxyCodeLine{52 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_ARG\_SET   OSMO\_TDEF\_VTY\_ARG\_T "{} "{}} OSMO\_TDEF\_VTY\_ARG\_VAL}
\DoxyCodeLine{53 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_DOC\_SET   OSMO\_TDEF\_VTY\_DOC\_T OSMO\_TDEF\_VTY\_DOC\_VAL}}
\DoxyCodeLine{54 \textcolor{preprocessor}{\#define OSMO\_TDEF\_VTY\_ARG\_SET\_OPTIONAL  OSMO\_TDEF\_VTY\_ARG\_T\_OPTIONAL "{} "{}} OSMO\_TDEF\_VTY\_ARG\_VAL\_OPTIONAL}
\DoxyCodeLine{55 }
\DoxyCodeLine{56 \textcolor{keywordtype}{int} osmo\_tdef\_vty\_set\_cmd(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *tdefs, \textcolor{keyword}{const} \textcolor{keywordtype}{char} **args);}
\DoxyCodeLine{57 \textcolor{keywordtype}{int} osmo\_tdef\_vty\_show\_cmd(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *tdefs, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *T\_arg,}
\DoxyCodeLine{58                            \textcolor{keyword}{const} \textcolor{keywordtype}{char} *prefix\_fmt, ...);}
\DoxyCodeLine{59 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_write(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *tdefs,}
\DoxyCodeLine{60                          \textcolor{keyword}{const} \textcolor{keywordtype}{char} *prefix\_fmt, ...);}
\DoxyCodeLine{61 }
\DoxyCodeLine{62 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_out\_one(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *t, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *prefix\_fmt, ...);}
\DoxyCodeLine{63 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_out\_all(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *tdefs, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *prefix\_fmt, ...);}
\DoxyCodeLine{64 }
\DoxyCodeLine{65 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_out\_one\_va(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *t, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *prefix\_fmt, va\_list va);}
\DoxyCodeLine{66 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_out\_all\_va(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *tdefs, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *prefix\_fmt, va\_list va);}
\DoxyCodeLine{67 }
\DoxyCodeLine{68 \textcolor{keyword}{struct }osmo\_tdef *osmo\_tdef\_vty\_parse\_T\_arg(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{struct} osmo\_tdef *tdefs, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_tdef\_str);}
\DoxyCodeLine{69 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} osmo\_tdef\_vty\_parse\_val\_arg(\textcolor{keyword}{const} \textcolor{keywordtype}{char} *val\_arg, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} default\_val);}
\DoxyCodeLine{70 }
\DoxyCodeLine{71 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_groups\_init(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} parent\_cfg\_node, \textcolor{keyword}{struct} osmo\_tdef\_group *groups);}
\DoxyCodeLine{72 \textcolor{keywordtype}{void} osmo\_tdef\_vty\_groups\_write(\textcolor{keyword}{struct} vty *vty, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *indent);}
\DoxyCodeLine{73 }

\end{DoxyCode}
