2 * Copyright (C) 2010-2016 Canonical Ltd.
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation, either version 3 of the License, or (at your option) any later
7 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
11 #ifndef GREETER_SOCKET_H_
12 #define GREETER_SOCKET_H_
14 #include <glib-object.h>
20 #define GREETER_SOCKET_TYPE (greeter_socket_get_type())
21 #define GREETER_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_SOCKET_TYPE, GreeterSocket))
22 #define GREETER_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_SOCKET_TYPE, GreeterSocketClass))
23 #define GREETER_SOCKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_SOCKET_TYPE, GreeterSocketClass))
24 #define IS_GREETER_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_SOCKET_TYPE))
26 #define GREETER_SOCKET_SIGNAL_CREATE_GREETER "create-greeter"
28 typedef struct GreeterSocketPrivate GreeterSocketPrivate;
32 GObject parent_instance;
33 GreeterSocketPrivate *priv;
38 GObjectClass parent_class;
39 Greeter *(*create_greeter)(GreeterSocket *socket);
42 GType greeter_socket_get_type (void);
44 GreeterSocket *greeter_socket_new (const gchar *path);
46 gboolean greeter_socket_start (GreeterSocket *socket, GError **error);
50 #endif /* GREETER_SOCKET_H_ */