ProxyAuth
Linux PAM to authenticate device via Bluetooth device
Functions
proxy_dbus.c File Reference
#include "proxy_dbus.h"
Include dependency graph for proxy_dbus.c:

Go to the source code of this file.

Functions

void terminate (struct dbus_obj *data_obj)
 
void on_signal (GDBusProxy *proxy, gchar *sender_name, gchar *signal_name, GVariant *parameters, gpointer user_data)
 
struct dbus_objset_lock_listener (struct server_data_t *server)
 
void check_lock_status (GMainContext *context)
 

Function Documentation

◆ check_lock_status()

void check_lock_status ( GMainContext *  context)

Definition at line 78 of file proxy_dbus.c.

◆ on_signal()

void on_signal ( GDBusProxy *  proxy,
gchar *  sender_name,
gchar *  signal_name,
GVariant *  parameters,
gpointer  user_data 
)

Terminate program if user is locked by actively "listening"/monitoring the changes in presence status

Signal Handler whenever the property of status changes

Parameters
proxy
sender_name
signal_name
parameters
user_dataa pointer to data that needs to be freed before terminating the program

Definition at line 20 of file proxy_dbus.c.

Here is the call graph for this function:

◆ set_lock_listener()

struct dbus_obj* set_lock_listener ( struct server_data_t server)

Calls and sets all the necessary data to listen for the status of the user's session (i.e. is the session locked)

Parameters
servera struct that contains the server and client's fd and the Bluetooth's SDP server object

NOTE: returns a reference to a struct dbus_obj that needs to be freed

Returns
an object that contains all the necessary data to listen for the lock status and the data that needs to be freed when program terminate

Definition at line 38 of file proxy_dbus.c.

Here is the call graph for this function:

◆ terminate()

void terminate ( struct dbus_obj data_obj)

Definition at line 3 of file proxy_dbus.c.

Here is the call graph for this function: