MidoriHSTSDirective

MidoriHSTSDirective

Functions

Types and Values

Object Hierarchy


Description

Functions

MIDORI_TYPE_HSTS

#define MIDORI_TYPE_HSTS (midori_hsts_get_type ())

The type for MidoriHSTS.


MIDORI_HSTS_TYPE_DIRECTIVE

#define MIDORI_HSTS_TYPE_DIRECTIVE (midori_hsts_directive_get_type ())

The type for MidoriHSTSDirective.


midori_hsts_directive_is_valid ()

gboolean
midori_hsts_directive_is_valid (MidoriHSTSDirective *self);

Parameters

self

the MidoriHSTSDirective instance

 

midori_hsts_directive_new ()

MidoriHSTSDirective *
midori_hsts_directive_new (gboolean include_sub_domains);

Parameters

include_sub_domains

 

 

midori_hsts_directive_new_from_header ()

MidoriHSTSDirective *
midori_hsts_directive_new_from_header (const gchar *header);

Parameters

header

 

 

midori_hsts_directive_ref ()

gpointer
midori_hsts_directive_ref (gpointer instance);

Increases the reference count of object .

Parameters

instance

a MidoriHSTSDirective.

 

Returns

the same object


midori_hsts_directive_unref ()

void
midori_hsts_directive_unref (gpointer instance);

Decreases the reference count of object . When its reference count drops to 0, the object is finalized (i.e. its memory is freed).

Parameters

instance

a MidoriHSTSDirective.

 

midori_hsts_param_spec_directive ()

GParamSpec *
midori_hsts_param_spec_directive (const gchar *name,
                                  const gchar *nick,
                                  const gchar *blurb,
                                  GType object_type,
                                  GParamFlags flags);

Creates a new GParamSpecBoxed instance specifying a MIDORI_HSTS_TYPE_DIRECTIVE derived property.

See g_param_spec_internal() for details on property names.

Parameters

name

canonical name of the property specified

 

nick

nick name for the property specified

 

blurb

description of the property specified

 

object_type

MIDORI_HSTS_TYPE_DIRECTIVE derived type of this property  

flags

flags for the property specified

 

midori_hsts_value_set_directive ()

void
midori_hsts_value_set_directive (GValue *value,
                                 gpointer v_object);

Set the contents of a MIDORI_HSTS_TYPE_DIRECTIVE derived GValue to v_object .

midori_hsts_value_set_directive() increases the reference count of v_object (the GValue holds a reference to v_object). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use midori_hsts_value_take_directive() instead.

It is important that your GValue holds a reference to v_object (either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists).

Parameters

value

a valid GValue of MIDORI_HSTS_TYPE_DIRECTIVE derived type

 

v_object

object value to be set

 

midori_hsts_value_get_directive ()

gpointer
midori_hsts_value_get_directive (const GValue *value);

Get the contents of a MIDORI_HSTS_TYPE_DIRECTIVE derived GValue.

Parameters

value

a valid GValue of MIDORI_HSTS_TYPE_DIRECTIVE derived type

 

Returns

object contents of value


midori_hsts_value_take_directive ()

void
midori_hsts_value_take_directive (GValue *value,
                                  gpointer v_object);

Sets the contents of a MIDORI_HSTS_TYPE_DIRECTIVE derived GValue to v_object and takes over the ownership of the callers reference to v_object ; the caller doesn't have to unref it any more (i.e. the reference count of the object is not increased).

If you want the GValue to hold its own reference to v_object , use midori_hsts_value_set_directive() instead.

Parameters

value

a valid GValue of MIDORI_HSTS_TYPE_DIRECTIVE derived type

 

v_object

object value to be set

 

midori_hsts_new ()

MidoriHSTS *
midori_hsts_new (void);

Types and Values

struct MidoriHSTSDirective

struct MidoriHSTSDirective {
	GTypeInstance parent_instance;
	volatile int ref_count;
	MidoriHSTSDirectivePrivate * priv;
	SoupDate* expires;
	gboolean sub_domains;
};

struct MidoriHSTSDirectiveClass

struct MidoriHSTSDirectiveClass {
	GTypeClass parent_class;
	void (*finalize) (MidoriHSTSDirective *self);
};

The class structure for MIDORI_HSTS_TYPE_DIRECTIVE. All the fields in this structure are private and should never be accessed directly.

Members

GTypeClass parent_class;

the parent class structure

 

finalize ()

   

struct MidoriHSTS

struct MidoriHSTS {
	GObject parent_instance;
	MidoriHSTSPrivate * priv;
};

struct MidoriHSTSClass

struct MidoriHSTSClass {
	GObjectClass parent_class;
};

The class structure for MIDORI_TYPE_HSTS. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure