atomes 1.3.2
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
fr_ipcms_atomes-Instance.c File Reference
#include "src/d-bus/fr_ipcms_atomes-Instance.h"
#include <string.h>
Include dependency graph for fr_ipcms_atomes-Instance.c:

Go to the source code of this file.

Data Structures

struct  _ExtendedGDBusArgInfo
struct  _ExtendedGDBusMethodInfo
struct  _ExtendedGDBusSignalInfo
struct  _ExtendedGDBusPropertyInfo
struct  _ExtendedGDBusInterfaceInfo
struct  ChangedProperty
struct  _InstanceProxyPrivate
struct  _InstanceSkeletonPrivate

Macros

#define g_marshal_value_peek_boolean(v)
#define g_marshal_value_peek_char(v)
#define g_marshal_value_peek_uchar(v)
#define g_marshal_value_peek_int(v)
#define g_marshal_value_peek_uint(v)
#define g_marshal_value_peek_long(v)
#define g_marshal_value_peek_ulong(v)
#define g_marshal_value_peek_int64(v)
#define g_marshal_value_peek_uint64(v)
#define g_marshal_value_peek_enum(v)
#define g_marshal_value_peek_flags(v)
#define g_marshal_value_peek_float(v)
#define g_marshal_value_peek_double(v)
#define g_marshal_value_peek_string(v)
#define g_marshal_value_peek_param(v)
#define g_marshal_value_peek_boxed(v)
#define g_marshal_value_peek_pointer(v)
#define g_marshal_value_peek_object(v)
#define g_marshal_value_peek_variant(v)

Typedefs

typedef InstanceIface InstanceInterface

Functions

GDBusInterfaceInfo * instance_interface_info (void)
guint instance_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin)
void instance_call_open_file (Instance *proxy, const gchar *arg_atomes, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean instance_call_open_file_finish (Instance *proxy, GAsyncResult *res, GError **error)
gboolean instance_call_open_file_sync (Instance *proxy, const gchar *arg_atomes, GCancellable *cancellable, GError **error)
void instance_complete_open_file (Instance *object G_GNUC_UNUSED, GDBusMethodInvocation *invocation)
 G_DEFINE_TYPE_WITH_CODE (InstanceProxy, instance_proxy, G_TYPE_DBUS_PROXY, G_IMPLEMENT_INTERFACE(TYPE_INSTANCE, instance_proxy_iface_init))
: (nullable): A bus name (well-known or unique) or NULL if @connection is not a message bus connection.

instance_proxy_new_sync: @connection: A #GDBusConnection. @flags: Flags from the #GDBusProxyFlags enumeration.

@object_path: An object path. @cancellable: (nullable): A #GCancellable or NULL. @error: Return location for error or NULL

Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-fr-ipcms-atomes-Instance.top_of_page">fr.ipcms.atomes.Instance</link>. See g_dbus_proxy_new_sync() for more details.

The calling thread is blocked until a reply is received.

See instance_proxy_new() for the asynchronous version of this constructor.

Returns: (transfer full) (type InstanceProxy): The constructed proxy object or NULL if @error is set.

void instance_proxy_new (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Instance * instance_proxy_new_finish (GAsyncResult *res, GError **error)
Instance * instance_proxy_new_sync (GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)

: A bus name (well-known or unique).

instance_proxy_new_for_bus_sync: @bus_type: A #GBusType. @flags: Flags from the #GDBusProxyFlags enumeration.

@object_path: An object path. @cancellable: (nullable): A #GCancellable or NULL. @error: Return location for error or NULL

Like instance_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.

The calling thread is blocked until a reply is received.

See instance_proxy_new_for_bus() for the asynchronous version of this constructor.

Returns: (transfer full) (type InstanceProxy): The constructed proxy object or NULL if @error is set.

void instance_proxy_new_for_bus (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
Instance * instance_proxy_new_for_bus_finish (GAsyncResult *res, GError **error)
Instance * instance_proxy_new_for_bus_sync (GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
 G_DEFINE_TYPE_WITH_CODE (InstanceSkeleton, instance_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, G_IMPLEMENT_INTERFACE(TYPE_INSTANCE, instance_skeleton_iface_init))
Instance * instance_skeleton_new (void)

Macro Definition Documentation

◆ g_marshal_value_peek_boolean

#define g_marshal_value_peek_boolean ( v)
Value:
(v)->data[0].v_int

Definition at line 45 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_boxed

#define g_marshal_value_peek_boxed ( v)
Value:
(v)->data[0].v_pointer

Definition at line 60 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_char

#define g_marshal_value_peek_char ( v)
Value:
(v)->data[0].v_int

Definition at line 46 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_double

#define g_marshal_value_peek_double ( v)
Value:
(v)->data[0].v_double

Definition at line 57 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_enum

#define g_marshal_value_peek_enum ( v)
Value:
(v)->data[0].v_long

Definition at line 54 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_flags

#define g_marshal_value_peek_flags ( v)
Value:
(v)->data[0].v_ulong

Definition at line 55 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_float

#define g_marshal_value_peek_float ( v)
Value:
(v)->data[0].v_float

Definition at line 56 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_int

#define g_marshal_value_peek_int ( v)
Value:
(v)->data[0].v_int

Definition at line 48 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_int64

#define g_marshal_value_peek_int64 ( v)
Value:
(v)->data[0].v_int64

Definition at line 52 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_long

#define g_marshal_value_peek_long ( v)
Value:
(v)->data[0].v_long

Definition at line 50 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_object

#define g_marshal_value_peek_object ( v)
Value:
(v)->data[0].v_pointer

Definition at line 62 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_param

#define g_marshal_value_peek_param ( v)
Value:
(v)->data[0].v_pointer

Definition at line 59 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_pointer

#define g_marshal_value_peek_pointer ( v)
Value:
(v)->data[0].v_pointer

Definition at line 61 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_string

#define g_marshal_value_peek_string ( v)
Value:
(v)->data[0].v_pointer

Definition at line 58 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_uchar

#define g_marshal_value_peek_uchar ( v)
Value:
(v)->data[0].v_uint

Definition at line 47 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_uint

#define g_marshal_value_peek_uint ( v)
Value:
(v)->data[0].v_uint

Definition at line 49 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_uint64

#define g_marshal_value_peek_uint64 ( v)
Value:
(v)->data[0].v_uint64

Definition at line 53 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_ulong

#define g_marshal_value_peek_ulong ( v)
Value:
(v)->data[0].v_ulong

Definition at line 51 of file fr_ipcms_atomes-Instance.c.

◆ g_marshal_value_peek_variant

#define g_marshal_value_peek_variant ( v)
Value:
(v)->data[0].v_pointer

Definition at line 63 of file fr_ipcms_atomes-Instance.c.

Typedef Documentation

◆ InstanceInterface

Instance:

Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-fr-ipcms-atomes-Instance.top_of_page">fr.ipcms.atomes.Instance</link>. InstanceIface: @parent_iface: The parent interface. @handle_open_file: Handler for the #Instance::handle-open-file signal.

Virtual table for the D-Bus interface <link linkend="gdbus-interface-fr-ipcms-atomes-Instance.top_of_page">fr.ipcms.atomes.Instance</link>.

Definition at line 368 of file fr_ipcms_atomes-Instance.c.

Function Documentation

◆ G_DEFINE_TYPE_WITH_CODE() [1/2]

G_DEFINE_TYPE_WITH_CODE ( InstanceProxy ,
instance_proxy ,
G_TYPE_DBUS_PROXY ,
G_IMPLEMENT_INTERFACE(TYPE_INSTANCE, instance_proxy_iface_init)  )

Definition at line 539 of file fr_ipcms_atomes-Instance.c.

◆ G_DEFINE_TYPE_WITH_CODE() [2/2]

G_DEFINE_TYPE_WITH_CODE ( InstanceSkeleton ,
instance_skeleton ,
G_TYPE_DBUS_INTERFACE_SKELETON ,
G_IMPLEMENT_INTERFACE(TYPE_INSTANCE, instance_skeleton_iface_init)  )

Definition at line 1077 of file fr_ipcms_atomes-Instance.c.

◆ instance_call_open_file()

void instance_call_open_file ( Instance * proxy,
const gchar * arg_atomes,
GCancellable * cancellable,
GAsyncReadyCallback callback,
gpointer user_data )

instance_call_open_file: @proxy: A InstanceProxy. @arg_atomes: Argument to pass with the method invocation. @cancellable: (nullable): A #GCancellable or NULL. @callback: A #GAsyncReadyCallback to call when the request is satisfied or NULL. @user_data: User data to pass to @callback.

Asynchronously invokes the <link linkend="gdbus-method-fr-ipcms-atomes-Instance.OpenFile">OpenFile()</link> D-Bus method on @proxy. When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call instance_call_open_file_finish() to get the result of the operation.

See instance_call_open_file_sync() for the synchronous, blocking version of this method.

Definition at line 415 of file fr_ipcms_atomes-Instance.c.

◆ instance_call_open_file_finish()

gboolean instance_call_open_file_finish ( Instance * proxy,
GAsyncResult * res,
GError ** error )

instance_call_open_file_finish: @proxy: A InstanceProxy. @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to instance_call_open_file(). @error: Return location for error or NULL.

Finishes an operation started with instance_call_open_file().

Returns: (skip): TRUE if the call succeeded, FALSE if @error is set.

Definition at line 444 of file fr_ipcms_atomes-Instance.c.

◆ instance_call_open_file_sync()

gboolean instance_call_open_file_sync ( Instance * proxy,
const gchar * arg_atomes,
GCancellable * cancellable,
GError ** error )

instance_call_open_file_sync: @proxy: A InstanceProxy. @arg_atomes: Argument to pass with the method invocation. @cancellable: (nullable): A #GCancellable or NULL. @error: Return location for error or NULL.

Synchronously invokes the <link linkend="gdbus-method-fr-ipcms-atomes-Instance.OpenFile">OpenFile()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.

See instance_call_open_file() for the asynchronous version of this method.

Returns: (skip): TRUE if the call succeeded, FALSE if @error is set.

Definition at line 474 of file fr_ipcms_atomes-Instance.c.

◆ instance_complete_open_file()

void instance_complete_open_file ( Instance *object G_GNUC_UNUSED,
GDBusMethodInvocation * invocation )

instance_complete_open_file: @object: A Instance. @invocation: (transfer full): A #GDBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-fr-ipcms-atomes-Instance.OpenFile">OpenFile()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free @invocation, you cannot use it afterwards.

Definition at line 508 of file fr_ipcms_atomes-Instance.c.

◆ instance_interface_info()

GDBusInterfaceInfo * instance_interface_info ( void )

instance_interface_info:

Gets a machine-readable description of the <link linkend="gdbus-interface-fr-ipcms-atomes-Instance.top_of_page">fr.ipcms.atomes.Instance</link> D-Bus interface.

Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.

Definition at line 318 of file fr_ipcms_atomes-Instance.c.

◆ instance_override_properties()

guint instance_override_properties ( GObjectClass *klass G_GNUC_UNUSED,
guint property_id_begin )

instance_override_properties: @klass: The class structure for a #GObject derived class. @property_id_begin: The property id to assign to the first overridden property.

Overrides all #GObject properties in the Instance interface for a concrete class. The properties are overridden in the order they are defined.

Returns: The last property id.

Definition at line 334 of file fr_ipcms_atomes-Instance.c.

◆ instance_proxy_new()

void instance_proxy_new ( GDBusConnection * connection,
GDBusProxyFlags flags,
const gchar * name,
const gchar * object_path,
GCancellable * cancellable,
GAsyncReadyCallback callback,
gpointer user_data )

Definition at line 697 of file fr_ipcms_atomes-Instance.c.

◆ instance_proxy_new_finish()

Instance * instance_proxy_new_finish ( GAsyncResult * res,
GError ** error )

instance_proxy_new_finish: @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to instance_proxy_new(). @error: Return location for error or NULL

Finishes an operation started with instance_proxy_new().

Returns: (transfer full) (type InstanceProxy): The constructed proxy object or NULL if @error is set.

Definition at line 719 of file fr_ipcms_atomes-Instance.c.

◆ instance_proxy_new_for_bus()

void instance_proxy_new_for_bus ( GBusType bus_type,
GDBusProxyFlags flags,
const gchar * name,
const gchar * object_path,
GCancellable * cancellable,
GAsyncReadyCallback callback,
gpointer user_data )

Definition at line 787 of file fr_ipcms_atomes-Instance.c.

◆ instance_proxy_new_for_bus_finish()

Instance * instance_proxy_new_for_bus_finish ( GAsyncResult * res,
GError ** error )

instance_proxy_new_for_bus_finish: @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to instance_proxy_new_for_bus(). @error: Return location for error or NULL

Finishes an operation started with instance_proxy_new_for_bus().

Returns: (transfer full) (type InstanceProxy): The constructed proxy object or NULL if @error is set.

Definition at line 809 of file fr_ipcms_atomes-Instance.c.

◆ instance_proxy_new_for_bus_sync()

Instance * instance_proxy_new_for_bus_sync ( GBusType bus_type,
GDBusProxyFlags flags,
const gchar * name,
const gchar * object_path,
GCancellable * cancellable,
GError ** error )

Definition at line 842 of file fr_ipcms_atomes-Instance.c.

◆ instance_proxy_new_sync()

Instance * instance_proxy_new_sync ( GDBusConnection * connection,
GDBusProxyFlags flags,
const gchar * name,
const gchar * object_path,
GCancellable * cancellable,
GError ** error )

Definition at line 752 of file fr_ipcms_atomes-Instance.c.

◆ instance_skeleton_new()

Instance * instance_skeleton_new ( void )

instance_skeleton_new:

Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-fr-ipcms-atomes-Instance.top_of_page">fr.ipcms.atomes.Instance</link>.

Returns: (transfer full) (type InstanceSkeleton): The skeleton object.

Definition at line 1150 of file fr_ipcms_atomes-Instance.c.