{"action":"created","comment":{"url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/comments/39828421","id":39828421,"diff_hunk":"@@ -0,0 +1,177 @@\n+/**\n+ * \\file\n+ *\n+ * \\brief Source for lineendings plugin\n+ *\n+ * \\copyright BSD License (see doc/COPYING or http://www.libelektra.org)\n+ *\n+ */\n+\n+\n+#ifndef HAVE_KDBCONFIG\n+# include \"kdbconfig.h\"\n+#endif\n+\n+#include <string.h>\n+#include <stdio.h>\n+#include <unistd.h>\n+#include <kdberrors.h>\n+#include \"lineendings.h\"\n+\n+#define LF_BYTE 0x0A\n+#define CR_BYTE 0x0D\n+\n+typedef enum {NA, CR, LF, CRLF, LFCR, NUM_TYPES}Lineending;","path":"src/plugins/lineendings/lineendings.c","position":24,"original_position":24,"commit_id":"84daebd198091fee46e701e19182dc31590ad4f9","original_commit_id":"84daebd198091fee46e701e19182dc31590ad4f9","user":{"login":"markus2330","id":7949075,"avatar_url":"https://avatars.githubusercontent.com/u/7949075?v=3","gravatar_id":"","url":"https://api.github.com/users/markus2330","html_url":"https://github.com/markus2330","followers_url":"https://api.github.com/users/markus2330/followers","following_url":"https://api.github.com/users/markus2330/following{/other_user}","gists_url":"https://api.github.com/users/markus2330/gists{/gist_id}","starred_url":"https://api.github.com/users/markus2330/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markus2330/subscriptions","organizations_url":"https://api.github.com/users/markus2330/orgs","repos_url":"https://api.github.com/users/markus2330/repos","events_url":"https://api.github.com/users/markus2330/events{/privacy}","received_events_url":"https://api.github.com/users/markus2330/received_events","type":"User","site_admin":false},"body":"space","created_at":"2015-09-18T06:54:03Z","updated_at":"2015-09-18T06:54:03Z","html_url":"https://github.com/ElektraInitiative/libelektra/pull/298#discussion_r39828421","pull_request_url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298","_links":{"self":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/comments/39828421"},"html":{"href":"https://github.com/ElektraInitiative/libelektra/pull/298#discussion_r39828421"},"pull_request":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298"}}},"pull_request":{"url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298","id":45352687,"html_url":"https://github.com/ElektraInitiative/libelektra/pull/298","diff_url":"https://github.com/ElektraInitiative/libelektra/pull/298.diff","patch_url":"https://github.com/ElektraInitiative/libelektra/pull/298.patch","issue_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/298","number":298,"state":"open","locked":false,"title":"CSVStorage and Lineendings","user":{"login":"tom-wa","id":13944659,"avatar_url":"https://avatars.githubusercontent.com/u/13944659?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-wa","html_url":"https://github.com/tom-wa","followers_url":"https://api.github.com/users/tom-wa/followers","following_url":"https://api.github.com/users/tom-wa/following{/other_user}","gists_url":"https://api.github.com/users/tom-wa/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-wa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-wa/subscriptions","organizations_url":"https://api.github.com/users/tom-wa/orgs","repos_url":"https://api.github.com/users/tom-wa/repos","events_url":"https://api.github.com/users/tom-wa/events{/privacy}","received_events_url":"https://api.github.com/users/tom-wa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-17T23:03:30Z","updated_at":"2015-09-18T06:54:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e735621f04fb7527dd0e9762bb1a28e79a252de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298/commits","review_comments_url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298/comments","review_comment_url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/298/comments","statuses_url":"https://api.github.com/repos/ElektraInitiative/libelektra/statuses/84daebd198091fee46e701e19182dc31590ad4f9","head":{"label":"tom-wa:master","ref":"master","sha":"84daebd198091fee46e701e19182dc31590ad4f9","user":{"login":"tom-wa","id":13944659,"avatar_url":"https://avatars.githubusercontent.com/u/13944659?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-wa","html_url":"https://github.com/tom-wa","followers_url":"https://api.github.com/users/tom-wa/followers","following_url":"https://api.github.com/users/tom-wa/following{/other_user}","gists_url":"https://api.github.com/users/tom-wa/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-wa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-wa/subscriptions","organizations_url":"https://api.github.com/users/tom-wa/orgs","repos_url":"https://api.github.com/users/tom-wa/repos","events_url":"https://api.github.com/users/tom-wa/events{/privacy}","received_events_url":"https://api.github.com/users/tom-wa/received_events","type":"User","site_admin":false},"repo":{"id":42685319,"name":"libelektra","full_name":"tom-wa/libelektra","owner":{"login":"tom-wa","id":13944659,"avatar_url":"https://avatars.githubusercontent.com/u/13944659?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-wa","html_url":"https://github.com/tom-wa","followers_url":"https://api.github.com/users/tom-wa/followers","following_url":"https://api.github.com/users/tom-wa/following{/other_user}","gists_url":"https://api.github.com/users/tom-wa/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-wa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-wa/subscriptions","organizations_url":"https://api.github.com/users/tom-wa/orgs","repos_url":"https://api.github.com/users/tom-wa/repos","events_url":"https://api.github.com/users/tom-wa/events{/privacy}","received_events_url":"https://api.github.com/users/tom-wa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tom-wa/libelektra","description":"Elektra provides a universal and secure framework to store configuration parameters in a global, hierarchical key database.","fork":true,"url":"https://api.github.com/repos/tom-wa/libelektra","forks_url":"https://api.github.com/repos/tom-wa/libelektra/forks","keys_url":"https://api.github.com/repos/tom-wa/libelektra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tom-wa/libelektra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tom-wa/libelektra/teams","hooks_url":"https://api.github.com/repos/tom-wa/libelektra/hooks","issue_events_url":"https://api.github.com/repos/tom-wa/libelektra/issues/events{/number}","events_url":"https://api.github.com/repos/tom-wa/libelektra/events","assignees_url":"https://api.github.com/repos/tom-wa/libelektra/assignees{/user}","branches_url":"https://api.github.com/repos/tom-wa/libelektra/branches{/branch}","tags_url":"https://api.github.com/repos/tom-wa/libelektra/tags","blobs_url":"https://api.github.com/repos/tom-wa/libelektra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tom-wa/libelektra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tom-wa/libelektra/git/refs{/sha}","trees_url":"https://api.github.com/repos/tom-wa/libelektra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tom-wa/libelektra/statuses/{sha}","languages_url":"https://api.github.com/repos/tom-wa/libelektra/languages","stargazers_url":"https://api.github.com/repos/tom-wa/libelektra/stargazers","contributors_url":"https://api.github.com/repos/tom-wa/libelektra/contributors","subscribers_url":"https://api.github.com/repos/tom-wa/libelektra/subscribers","subscription_url":"https://api.github.com/repos/tom-wa/libelektra/subscription","commits_url":"https://api.github.com/repos/tom-wa/libelektra/commits{/sha}","git_commits_url":"https://api.github.com/repos/tom-wa/libelektra/git/commits{/sha}","comments_url":"https://api.github.com/repos/tom-wa/libelektra/comments{/number}","issue_comment_url":"https://api.github.com/repos/tom-wa/libelektra/issues/comments{/number}","contents_url":"https://api.github.com/repos/tom-wa/libelektra/contents/{+path}","compare_url":"https://api.github.com/repos/tom-wa/libelektra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tom-wa/libelektra/merges","archive_url":"https://api.github.com/repos/tom-wa/libelektra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tom-wa/libelektra/downloads","issues_url":"https://api.github.com/repos/tom-wa/libelektra/issues{/number}","pulls_url":"https://api.github.com/repos/tom-wa/libelektra/pulls{/number}","milestones_url":"https://api.github.com/repos/tom-wa/libelektra/milestones{/number}","notifications_url":"https://api.github.com/repos/tom-wa/libelektra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tom-wa/libelektra/labels{/name}","releases_url":"https://api.github.com/repos/tom-wa/libelektra/releases{/id}","created_at":"2015-09-17T22:27:25Z","updated_at":"2015-09-17T22:27:28Z","pushed_at":"2015-09-18T01:47:04Z","git_url":"git://github.com/tom-wa/libelektra.git","ssh_url":"git@github.com:tom-wa/libelektra.git","clone_url":"https://github.com/tom-wa/libelektra.git","svn_url":"https://github.com/tom-wa/libelektra","homepage":"","size":31436,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ElektraInitiative:master","ref":"master","sha":"547d5ca7588f068196699e5f22770220b1ccbb7a","user":{"login":"ElektraInitiative","id":7949092,"avatar_url":"https://avatars.githubusercontent.com/u/7949092?v=3","gravatar_id":"","url":"https://api.github.com/users/ElektraInitiative","html_url":"https://github.com/ElektraInitiative","followers_url":"https://api.github.com/users/ElektraInitiative/followers","following_url":"https://api.github.com/users/ElektraInitiative/following{/other_user}","gists_url":"https://api.github.com/users/ElektraInitiative/gists{/gist_id}","starred_url":"https://api.github.com/users/ElektraInitiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElektraInitiative/subscriptions","organizations_url":"https://api.github.com/users/ElektraInitiative/orgs","repos_url":"https://api.github.com/users/ElektraInitiative/repos","events_url":"https://api.github.com/users/ElektraInitiative/events{/privacy}","received_events_url":"https://api.github.com/users/ElektraInitiative/received_events","type":"Organization","site_admin":false},"repo":{"id":21063580,"name":"libelektra","full_name":"ElektraInitiative/libelektra","owner":{"login":"ElektraInitiative","id":7949092,"avatar_url":"https://avatars.githubusercontent.com/u/7949092?v=3","gravatar_id":"","url":"https://api.github.com/users/ElektraInitiative","html_url":"https://github.com/ElektraInitiative","followers_url":"https://api.github.com/users/ElektraInitiative/followers","following_url":"https://api.github.com/users/ElektraInitiative/following{/other_user}","gists_url":"https://api.github.com/users/ElektraInitiative/gists{/gist_id}","starred_url":"https://api.github.com/users/ElektraInitiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElektraInitiative/subscriptions","organizations_url":"https://api.github.com/users/ElektraInitiative/orgs","repos_url":"https://api.github.com/users/ElektraInitiative/repos","events_url":"https://api.github.com/users/ElektraInitiative/events{/privacy}","received_events_url":"https://api.github.com/users/ElektraInitiative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ElektraInitiative/libelektra","description":"Elektra provides a universal and secure framework to store configuration parameters in a global, hierarchical key database.","fork":false,"url":"https://api.github.com/repos/ElektraInitiative/libelektra","forks_url":"https://api.github.com/repos/ElektraInitiative/libelektra/forks","keys_url":"https://api.github.com/repos/ElektraInitiative/libelektra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElektraInitiative/libelektra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElektraInitiative/libelektra/teams","hooks_url":"https://api.github.com/repos/ElektraInitiative/libelektra/hooks","issue_events_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/events{/number}","events_url":"https://api.github.com/repos/ElektraInitiative/libelektra/events","assignees_url":"https://api.github.com/repos/ElektraInitiative/libelektra/assignees{/user}","branches_url":"https://api.github.com/repos/ElektraInitiative/libelektra/branches{/branch}","tags_url":"https://api.github.com/repos/ElektraInitiative/libelektra/tags","blobs_url":"https://api.github.com/repos/ElektraInitiative/libelektra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElektraInitiative/libelektra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElektraInitiative/libelektra/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElektraInitiative/libelektra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElektraInitiative/libelektra/statuses/{sha}","languages_url":"https://api.github.com/repos/ElektraInitiative/libelektra/languages","stargazers_url":"https://api.github.com/repos/ElektraInitiative/libelektra/stargazers","contributors_url":"https://api.github.com/repos/ElektraInitiative/libelektra/contributors","subscribers_url":"https://api.github.com/repos/ElektraInitiative/libelektra/subscribers","subscription_url":"https://api.github.com/repos/ElektraInitiative/libelektra/subscription","commits_url":"https://api.github.com/repos/ElektraInitiative/libelektra/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElektraInitiative/libelektra/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElektraInitiative/libelektra/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElektraInitiative/libelektra/contents/{+path}","compare_url":"https://api.github.com/repos/ElektraInitiative/libelektra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElektraInitiative/libelektra/merges","archive_url":"https://api.github.com/repos/ElektraInitiative/libelektra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElektraInitiative/libelektra/downloads","issues_url":"https://api.github.com/repos/ElektraInitiative/libelektra/issues{/number}","pulls_url":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls{/number}","milestones_url":"https://api.github.com/repos/ElektraInitiative/libelektra/milestones{/number}","notifications_url":"https://api.github.com/repos/ElektraInitiative/libelektra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElektraInitiative/libelektra/labels{/name}","releases_url":"https://api.github.com/repos/ElektraInitiative/libelektra/releases{/id}","created_at":"2014-06-21T08:01:04Z","updated_at":"2015-08-30T22:05:09Z","pushed_at":"2015-09-18T01:47:05Z","git_url":"git://github.com/ElektraInitiative/libelektra.git","ssh_url":"git@github.com:ElektraInitiative/libelektra.git","clone_url":"https://github.com/ElektraInitiative/libelektra.git","svn_url":"https://github.com/ElektraInitiative/libelektra","homepage":"","size":31436,"stargazers_count":17,"watchers_count":17,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":39,"forks":15,"open_issues":39,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298"},"html":{"href":"https://github.com/ElektraInitiative/libelektra/pull/298"},"issue":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/298"},"comments":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/issues/298/comments"},"review_comments":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298/comments"},"review_comment":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/pulls/298/commits"},"statuses":{"href":"https://api.github.com/repos/ElektraInitiative/libelektra/statuses/84daebd198091fee46e701e19182dc31590ad4f9"}}}}