OSDN Git Service

Remove the set cpu count option as it doesn't do anything now
[handbrake-jp/handbrake-jp-git.git] / gtk / src / resources.c
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  * resources.c
4  * Copyright (C) John Stebbins 2008-2011 <stebbins@stebbins>
5  * 
6  * resources.c is free software.
7  * 
8  * You may redistribute it and/or modify it under the terms of the
9  * GNU General Public License, as published by the Free Software
10  * Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  * 
13  */
14 #include <glib.h>
15 #include <glib-object.h>
16 #include <glib/gstdio.h>
17 #include <string.h>
18 #include <gtk/gtk.h>
19 #include "settings.h"
20 #include "plist.h"
21 #include "resources.h"
22 #include "values.h"
23
24 static const gchar resource_str[] =
25 #include "resource_data.h"
26 ;
27
28 static GValue *resources;
29
30 void
31 ghb_resource_init()
32 {
33         resources = ghb_plist_parse(resource_str, sizeof(resource_str)-1);
34 }
35
36 GValue*
37 ghb_resource_get(const gchar *name)
38 {
39         GValue *result;
40         result = ghb_dict_lookup(resources, name);
41         return result;
42 }