<commit_before>/*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#pragma once

// This is kept outside of server.h because window.h also needs it.
#define PLATFORM_PORT_NAME "engineer.atlas.next.platform"
#define PLATFORM_PORT_OBJECT_PATH "/engineer/atlas/next/platform"
#define PLATFORM_PORT_INTERFACE PLATFORM_PORT_NAME

#define CORE_NAME "engineer.atlas.next.core"
#define CORE_OBJECT_PATH "/engineer/atlas/next/core"
#define CORE_INTERFACE CORE_NAME

typedef struct {
	GHashTable *windows;
	GHashTable *buffers;
	GHashTable *server_callbacks;
	GDBusConnection *connection;
	const gchar *introspection_xml;
	guint registration_id;
} ServerState;

static ServerState state = {
	/* Introspection data for the service we are exporting */
	.introspection_xml =
		"<node>"
		"  <interface name='engineer.atlas.next.platform'>"
		"    <method name='window_make'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='s' name='new_id' direction='out'/>"
		"    </method>"
		"    <method name='window_set_title'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='s' name='title' direction='in'/>"
		"      <arg type='b' name='status' direction='out'/>"
		"    </method>"
		"    <method name='window_delete'>"
		"      <arg type='s' name='id' direction='out'/>"
		"    </method>"
		"    <method name='window_exists'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='b' name='result' direction='out'/>"
		"    </method>"
		"    <method name='window_active'>"
		"      <arg type='s' name='id' direction='out'/>"
		"    </method>"
		"    <method name='window_set_active_buffer'>"<commit_msg>ports/gtk-webkit: Fix window_delete D-Bus signature.<commit_after>/*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#pragma once

// This is kept outside of server.h because window.h also needs it.
#define PLATFORM_PORT_NAME "engineer.atlas.next.platform"
#define PLATFORM_PORT_OBJECT_PATH "/engineer/atlas/next/platform"
#define PLATFORM_PORT_INTERFACE PLATFORM_PORT_NAME

#define CORE_NAME "engineer.atlas.next.core"
#define CORE_OBJECT_PATH "/engineer/atlas/next/core"
#define CORE_INTERFACE CORE_NAME

typedef struct {
	GHashTable *windows;
	GHashTable *buffers;
	GHashTable *server_callbacks;
	GDBusConnection *connection;
	const gchar *introspection_xml;
	guint registration_id;
} ServerState;

static ServerState state = {
	/* Introspection data for the service we are exporting */
	.introspection_xml =
		"<node>"
		"  <interface name='engineer.atlas.next.platform'>"
		"    <method name='window_make'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='s' name='new_id' direction='out'/>"
		"    </method>"
		"    <method name='window_set_title'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='s' name='title' direction='in'/>"
		"      <arg type='b' name='status' direction='out'/>"
		"    </method>"
		"    <method name='window_delete'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='b' name='status' direction='out'/>"
		"    </method>"
		"    <method name='window_exists'>"
		"      <arg type='s' name='id' direction='in'/>"
		"      <arg type='b' name='result' direction='out'/>"
		"    </method>"
		"    <method name='window_active'>"
		"      <arg type='s' name='id' direction='out'/>"
		"    </method>"
		"    <method name='window_set_active_buffer'>"
{'fraction_non_alphanumeric': 0.16071428571428573, 'fraction_numerical': 0.0045351473922902496, 'mean_word_length': 3.956460674157303, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 48, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6516741', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1231, 'n_words': 281}