Permalink
Browse files

GSettings Backend: project structure and stub debug implementation

  • Loading branch information...
raetiacorvus committed May 30, 2016
1 parent d1020a9 commit 251a56c7a475b099cb63008fec4827dac92aa8f4
Showing with 407 additions and 1 deletion.
  1. +39 −0 .clang-format
  2. +79 −0 .gitignore
  3. +10 −0 CMakeLists.txt
  4. 0 LICENSE → LICENSE.md
  5. +5 −1 README.md
  6. +274 −0 elektrasettingsbackend.c
View
@@ -0,0 +1,39 @@
+AccessModifierOffset: -8
+AlignEscapedNewlinesLeft: false
+AlignTrailingComments: true
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortBlocksOnASingleLine: false
+AllowShortIfStatementsOnASingleLine: true
+AllowShortLoopsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: false
+AlwaysBreakBeforeMultilineStrings: true
+AlwaysBreakTemplateDeclarations: true
+BinPackParameters: true
+BreakBeforeBraces: Allman
+BreakBeforeTernaryOperators: false
+BreakConstructorInitializersBeforeComma: false
+ColumnLimit: 140
+CommentPragmas: ^\*
+ConstructorInitializerAllOnOneLineOrOnePerLine: false
+ConstructorInitializerIndentWidth: 0
+ContinuationIndentWidth: 8
+Cpp11BracedListStyle: false
+DerivePointerAlignment: false
+DisableFormat: false
+IndentCaseLabels: false
+IndentWidth: 8
+IndentWrappedFunctionNames: false
+KeepEmptyLinesAtTheStartOfBlocks: true
+NamespaceIndentation: None
+PointerAlignment: Middle
+TabWidth: 8
+MaxEmptyLinesToKeep: 2
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: Always
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 1
+SpacesInAngles: false
+SpacesInContainerLiterals: false
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+UseTab: Always
View
@@ -0,0 +1,79 @@
+# Created by https://www.gitignore.io/api/linux,osx,windows,cmake
+
+### Linux ###
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+
+### OSX ###
+*.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+
+### Windows ###
+# Windows image file caches
+Thumbs.db
+ehthumbs.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+*.cab
+*.msi
+*.msm
+*.msp
+
+# Windows shortcuts
+*.lnk
+
+
+### CMake ###
+CMakeCache.txt
+CMakeFiles
+CMakeScripts
+Makefile
+cmake_install.cmake
+install_manifest.txt
+CTestTestfile.cmake
+
+
+### build folders ###
+build
+release
+debug
View
@@ -0,0 +1,10 @@
+cmake_minimum_required (VERSION 3.5)
+project (elektrasettings)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(GLIB glib-2.0>=2.48.0 REQUIRED)
+include_directories(${GLIB_INCLUDE_DIRS})
+find_package(Elektra 0.8.16 REQUIRED)
+include_directories(${ELEKTRA_INCLUDE_DIRS})
+add_library(elektrasettings SHARED elektrasettingsbackend.c)
+target_link_libraries(elektrasettings ${ELEKTRA_LIBRARIES} ${GLIB_LIBRARIES})
+install(TARGETS elektrasettings LIBRARY DESTINATION "/usr/lib/gio/modules/")
View
File renamed without changes.
View
@@ -1,2 +1,6 @@
# elektrasettings
-Implementation of Elektra as GSettingsBackend
+Future: Implementation of Elektra as GSettingsBackend
+Currently: Groundowork for the former = stub implementation of GSettingsBackend with debug messages
+
+This repository exists only for development reasen, it will be later integrated
+in [libelektra](https://github.com/ElektraInitiative/libelektra) once it is mature enough.
Oops, something went wrong.

0 comments on commit 251a56c

Please sign in to comment.