28
28
G_DEFINE_TYPE (LdmSession, ldm_session, G_TYPE_OBJECT);
33
* Create a new session.
34
* @key: The unique key for this session
35
* @name: The name of this session
36
* @comment: The comment for this session
38
* Return value: the new #LdmSession
31
41
ldm_session_new (const gchar *key, const gchar *name, const gchar *comment)
33
43
return g_object_new (LDM_TYPE_SESSION, "key", key, "name", name, "comment", comment, NULL);
37
ldm_session_get_key (LdmSession *user)
39
return user->priv->key;
43
ldm_session_get_name (LdmSession *user)
45
return user->priv->name;
49
ldm_session_get_comment (LdmSession *user)
51
return user->priv->comment;
48
* @session: A #LdmSession
50
* Get the key for a session
52
* Return value: The session key
55
ldm_session_get_key (LdmSession *session)
57
return session->priv->key;
61
* ldm_session_get_name
62
* @session: A #LdmSession
64
* Get the name for a session
66
* Return value: The session name
69
ldm_session_get_name (LdmSession *session)
71
return session->priv->name;
75
* ldm_session_get_comment
76
* @session: A #LdmSession
78
* Get the comment for a session
80
* Return value: The session comment
83
ldm_session_get_comment (LdmSession *session)
85
return session->priv->comment;
55
ldm_session_init (LdmSession *user)
89
ldm_session_init (LdmSession *session)
57
user->priv = G_TYPE_INSTANCE_GET_PRIVATE (user, LDM_TYPE_SESSION, LdmSessionPrivate);
91
session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, LDM_TYPE_SESSION, LdmSessionPrivate);