![]() |
libyang
4.0.12
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
|
ietf-yang-types date-and-time type plugin. More...
#include "plugins_types.h"#include <assert.h>#include <ctype.h>#include <errno.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <time.h>#include "libyang.h"#include "compat.h"#include "ly_common.h"#include "plugins_internal.h"Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE /* strdup */ |
Functions | |
| if (dt!=0) | |
| LYD_VALUE_GET (val1, v1) | |
| LYD_VALUE_GET (val2, v2) | |
| return | lyplg_type_sort_by_fractions (v1->fractions_s, v2->fractions_s) |
Variables | |
| double | dt = difftime(v1->time, v2->time) |
| struct lyplg_type_record | plugins_date_and_time [] |
| Plugin information for date-and-time type implementation. More... | |
ietf-yang-types date-and-time type plugin.
This source code is licensed under BSD 3-Clause License (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at
https://opensource.org/licenses/BSD-3-Clause
Definition in file date_and_time.c.
| #define _GNU_SOURCE /* strdup */ |
Definition at line 15 of file date_and_time.c.
| if | ( | dt! | = 0 | ) |
Definition at line 247 of file date_and_time.c.
| LYD_VALUE_GET | ( | val1 | , |
| v1 | |||
| ) |
| LYD_VALUE_GET | ( | val2 | , |
| v2 | |||
| ) |
| return lyplg_type_sort_by_fractions | ( | v1-> | fractions_s, |
| v2-> | fractions_s | ||
| ) |
| dt = difftime(v1->time, v2->time) |
Definition at line 240 of file date_and_time.c.
| struct lyplg_type_record plugins_date_and_time[] |
Plugin information for date-and-time type implementation.
Note that external plugins are supposed to use:
LYPLG_TYPES = {
Definition at line 390 of file date_and_time.c.