The Assimilation Project  based on Assimilation version 1.1.7.1474836767
replacement_funs.c File Reference

Define replacement functions. More...

#include <projectcommon.h>
#include <string.h>
#include <time.h>
Include dependency graph for replacement_funs.c:

Go to the source code of this file.

Macros

#define CLOCKARG   CLOCK_REALTIME
 HAVE_G_GET_REAL_TIME. More...
 

Functions

WINEXPORT gint64 g_get_real_time (void)
 HAVE_G_GET_MONOTONIC_TIME. More...
 
WINEXPORT gint64 g_get_monotonic_time (void)
 Local replacement for g_get_monotonic_time() - for old releases of glib. More...
 
void assim_slist_free_full (GSList *list, void(*datafree)(gpointer))
 HAVE_G_GET_MONOTONIC_TIME. More...
 
gchar ** g_get_environ (void)
 
gboolean g_queue_remove_boolean (GQueue *queue, gconstpointer element)
 HAVE_G_GET_ENVIRON. More...
 

Variables

char ** environ
 G_SLIST_FREE_FULL. More...
 

Detailed Description

Define replacement functions.

Provides replacement functions for those systems which are lacking various things we like.

This file is part of the Assimilation Project.

Author
Copyright © 2011, 2012, 2013 - Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh
The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file replacement_funs.c.

Macro Definition Documentation

#define CLOCKARG   CLOCK_REALTIME

HAVE_G_GET_REAL_TIME.

Definition at line 51 of file replacement_funs.c.

Referenced by g_get_monotonic_time().

Function Documentation

void assim_slist_free_full ( GSList *  list,
void(*)(gpointer)  datafree 
)

HAVE_G_GET_MONOTONIC_TIME.

Local replacement function for g_slist_free_full()

Definition at line 71 of file replacement_funs.c.

References environ.

gchar** g_get_environ ( void  )

Definition at line 97 of file replacement_funs.c.

Referenced by assim_merge_environ().

Here is the caller graph for this function:

WINEXPORT gint64 g_get_real_time ( void  )

HAVE_G_GET_MONOTONIC_TIME.

Local replacement for g_get_real_time() - for old releases of glib

Definition at line 34 of file replacement_funs.c.

Referenced by _hblistener_checktimeouts(), _hblistener_got_frameset(), _hblistener_set_deadtime(), _hblistener_set_warntime(), _jsondiscovery_discover(), _seqnoframe_initsessionid(), discovery_new(), and nano_reqconfig().

Here is the caller graph for this function:

gboolean g_queue_remove_boolean ( GQueue *  queue,
gconstpointer  element 
)

HAVE_G_GET_ENVIRON.

< Older versions of glib had g_queue_remove() return void - we need the boolean version for some things

Definition at line 120 of file replacement_funs.c.

Referenced by _resource_queue_cmd_remove().

Here is the caller graph for this function:

Variable Documentation

char** environ

G_SLIST_FREE_FULL.

Referenced by assim_slist_free_full().