netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
afpstats.c File Reference
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <atalk/compat.h>
#include <atalk/errchk.h>
#include <atalk/logger.h>
#include <atalk/server_child.h>
#include "afpstats_obj.h"

Functions

static void handle_method_call (GDBusConnection *connection _U_, const gchar *sender _U_, const gchar *object_path _U_, const gchar *interface_name _U_, const gchar *method_name, GVariant *parameters _U_, GDBusMethodInvocation *invocation, gpointer user_data)
static void on_bus_acquired (GDBusConnection *connection _U_, const gchar *name, gpointer user_data _U_)
static void on_name_acquired (GDBusConnection *connection _U_, const gchar *name, gpointer user_data _U_)
static void on_name_lost (GDBusConnection *connection _U_, const gchar *name, gpointer user_data _U_)
static gpointer afpstats_thread (gpointer _data _U_)
static void my_glib_log (const gchar *log_domain, GLogLevelFlags log_level _U_, const gchar *message, gpointer user_data _U_)
server_child_tafpstats_get_and_lock_childs (void)
void afpstats_unlock_childs (void)
int afpstats_init (server_child_t *childs_in)

Variables

static server_child_tchilds
static GDBusNodeInfo * introspection_data = NULL
static const GDBusInterfaceVTable interface_vtable

Function Documentation

◆ afpstats_get_and_lock_childs()

server_child_t * afpstats_get_and_lock_childs ( void )

◆ afpstats_init()

int afpstats_init ( server_child_t * childs_in)

◆ afpstats_thread()

gpointer afpstats_thread ( gpointer _data _U_)
static

◆ afpstats_unlock_childs()

void afpstats_unlock_childs ( void )

◆ handle_method_call()

void handle_method_call ( GDBusConnection *connection _U_,
const gchar *sender _U_,
const gchar *object_path _U_,
const gchar *interface_name _U_,
const gchar * method_name,
GVariant *parameters _U_,
GDBusMethodInvocation * invocation,
gpointer user_data )
static

◆ my_glib_log()

void my_glib_log ( const gchar * log_domain,
GLogLevelFlags log_level _U_,
const gchar * message,
gpointer user_data _U_ )
static

◆ on_bus_acquired()

void on_bus_acquired ( GDBusConnection *connection _U_,
const gchar * name,
gpointer user_data _U_ )
static

◆ on_name_acquired()

void on_name_acquired ( GDBusConnection *connection _U_,
const gchar * name,
gpointer user_data _U_ )
static

◆ on_name_lost()

void on_name_lost ( GDBusConnection *connection _U_,
const gchar * name,
gpointer user_data _U_ )
static

Variable Documentation

◆ childs

server_child_t* childs
static

◆ interface_vtable

const GDBusInterfaceVTable interface_vtable
static
Initial value:
= {
NULL,
NULL,
{ 0 }
}
static void handle_method_call(GDBusConnection *connection _U_, const gchar *sender _U_, const gchar *object_path _U_, const gchar *interface_name _U_, const gchar *method_name, GVariant *parameters _U_, GDBusMethodInvocation *invocation, gpointer user_data)
Definition afpstats.c:42

◆ introspection_data

GDBusNodeInfo* introspection_data = NULL
static