MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_resource_init

Function ghb_resource_init

gtk/src/resources.c:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static GhbValue *resources;
27
28void
29ghb_resource_init (void)
30{
31 GhbValue *val;
32 gsize data_size;
33 GBytes *gbytes;
34 gconstpointer data;
35
36 resources = ghb_dict_new();
37
38 GResource *data_res = ghb_data_get_resource();
39
40 gbytes = g_resource_lookup_data(data_res,
41 "/fr/handbrake/ghb/data/internal_defaults.json", 0, NULL);
42 data = g_bytes_get_data(gbytes, &data_size);
43 val = ghb_json_parse(data);
44 g_bytes_unref(gbytes);
45 ghb_dict_set(resources, "internal-defaults", val);
46}
47
48GhbValue*
49ghb_resource_get(const gchar *name)

Callers 1

ghb_application_activateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected