mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-21 07:54:09 -06:00
assignable: install nvidia module
This commit is contained in:
parent
f74f9b71a1
commit
39b5f30c73
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
build
|
||||
/*kdev*
|
||||
**/*swp*
|
||||
|
@ -83,7 +83,6 @@ tc_module_t *tc_module_find(enum tc_module_category category, const char *name)
|
||||
|
||||
// Call the function to get the module handle
|
||||
tc_module_t *(*mod_info_func)() = tc_dlsym(handle, TC_MODULE_INFO_FUNCTION_NAME);
|
||||
//return mod_info_func();
|
||||
tc_module_t *mod;
|
||||
if ((mod = mod_info_func()) == NULL) {
|
||||
tc_dlclose(handle);
|
||||
|
@ -17,5 +17,7 @@ if all_nvidia_linux_libs
|
||||
shared_library('nvidia', 'nvidia_linux.c',
|
||||
include_directories : incdir,
|
||||
dependencies : nvidia_linux_libs,
|
||||
link_with : libtuxclocker)
|
||||
link_with : libtuxclocker,
|
||||
install_dir : get_option('libdir') / 'tuxclocker' / 'modules' / 'assignable',
|
||||
install : true)
|
||||
endif
|
||||
|
@ -32,7 +32,7 @@ tc_module_t mod_info = {
|
||||
.description = "Nvidia assignables",
|
||||
.init_callback = &init,
|
||||
.close_callback = &close,
|
||||
.category_data_callback = (void *(*)())&category_callback
|
||||
.category_data_callback = (void *(*)()) &category_callback
|
||||
};
|
||||
|
||||
tc_module_t *TC_MODULE_INFO_FUNCTION() {
|
||||
|
@ -11,7 +11,7 @@ AssignableWidget::AssignableWidget(QWidget *parent) : QWidget(parent) {
|
||||
m_mainLayout->addWidget(m_splitter);
|
||||
|
||||
m_assignableTreeView = new QTreeView;
|
||||
//genAssignableTree(m_assignableTreeView);
|
||||
genAssignableTree(m_assignableTreeView);
|
||||
m_splitter->addWidget(m_assignableTreeView);
|
||||
|
||||
m_assignableEditor = new AssignableEditor;
|
||||
@ -32,6 +32,9 @@ void AssignableWidget::genAssignableTree(QTreeView* treeView) {
|
||||
}
|
||||
printf("opened nv mod\n");
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem;
|
||||
tc_assignable_node_t *parent = (tc_assignable_node_t*) nv_mod->category_data_callback();
|
||||
|
Loading…
Reference in New Issue
Block a user