{"action":"created","comment":{"url":"https://api.github.com/repos/solettaproject/soletta/pulls/comments/43054283","id":43054283,"diff_hunk":"@@ -0,0 +1,398 @@\n+/*\n+ * This file is part of the Soletta Project\n+ *\n+ * Copyright (C) 2015 Intel Corporation. All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions\n+ * are met:\n+ *\n+ *   * Redistributions of source code must retain the above copyright\n+ *     notice, this list of conditions and the following disclaimer.\n+ *   * Redistributions in binary form must reproduce the above copyright\n+ *     notice, this list of conditions and the following disclaimer in\n+ *     the documentation and/or other materials provided with the\n+ *     distribution.\n+ *   * Neither the name of Intel Corporation nor the names of its\n+ *     contributors may be used to endorse or promote products derived\n+ *     from this software without specific prior written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#include <libkmod.h>\n+#include <sys/stat.h>\n+\n+#define SOL_LOG_DOMAIN &_log_domain\n+#include \"sol-log-internal.h\"\n+SOL_LOG_INTERNAL_DECLARE_STATIC(_log_domain, \"linux-micro-kmod\");\n+\n+#include \"sol-file-reader.h\"\n+#include \"sol-mainloop.h\"\n+#include \"sol-platform-linux-micro.h\"\n+#include \"sol-util.h\"\n+\n+struct kmod_data {\n+    struct kmod_ctx *kmod;\n+};\n+\n+static struct kmod_data context;\n+\n+static int\n+kmod_apply_value(struct kmod_ctx *kmod, struct sol_str_slice modalias)\n+{\n+    const int probe_flags = KMOD_PROBE_APPLY_BLACKLIST;\n+    struct kmod_list *itr, *modlist = NULL;\n+    int r = 0;\n+\n+    SOL_INF(\"Trying to load module for alias: %s\", modalias.data);\n+\n+    r = kmod_module_new_from_lookup(kmod, modalias.data, &modlist);\n+    if (r < 0) {\n+        SOL_ERR(\"Failed to lookup alias '%s': %s\", modalias.data,\n+            sol_util_strerrora(errno));\n+        return r;\n+    }\n+\n+    if (!modlist) {\n+        SOL_INF(\"No modules found for alias: '%s'\", modalias.data);\n+        return -ENOENT;\n+    }\n+\n+    kmod_list_foreach(itr, modlist) {\n+        struct kmod_module *mod;\n+        int state, err;\n+\n+        mod = kmod_module_get_module(itr);\n+        state = kmod_module_get_initstate(mod);\n+\n+        switch (state) {\n+        case KMOD_MODULE_BUILTIN:\n+            SOL_DBG(\"Module '%s' is builtin\", kmod_module_get_name(mod));\n+            break;\n+\n+        case KMOD_MODULE_LIVE:\n+            SOL_DBG(\"Module '%s' is already loaded\", kmod_module_get_name(mod));\n+            break;\n+\n+        default:\n+            err = kmod_module_probe_insert_module(mod, probe_flags,\n+                NULL, NULL, NULL, NULL);\n+\n+            if (err == 0)\n+                SOL_INF(\"Inserted module '%s'\", kmod_module_get_name(mod));\n+            else if (err == KMOD_PROBE_APPLY_BLACKLIST)\n+                SOL_INF(\"Module '%s' is blacklisted\", kmod_module_get_name(mod));\n+            else {\n+                SOL_WRN(\"Failed to insert '%s': %s\", kmod_module_get_name(mod),\n+                    sol_util_strerrora(errno));\n+                r = err;\n+            }\n+        }\n+\n+        kmod_module_unref(mod);\n+    }\n+\n+    kmod_module_unref_list(modlist);\n+    return r;\n+}\n+\n+static int\n+kmod_apply_file(struct kmod_ctx *kmod, int fd)\n+{\n+    int err = 0, ret;\n+    struct sol_file_reader *reader;\n+    struct sol_str_slice content = SOL_STR_SLICE_EMPTY;\n+    struct sol_str_slice *itr;\n+    uint16_t idx;\n+    struct sol_vector lines;\n+\n+    reader = sol_file_reader_fd(fd);\n+    if (!reader) {\n+        SOL_ERR(\"Could not open config file\");\n+        return err;\n+    }\n+\n+    content = sol_file_reader_get_all(reader);\n+    if (content.len == 0)\n+        goto finish;\n+\n+    lines = sol_util_str_split(content, \"\\n\", 0);\n+    SOL_VECTOR_FOREACH_IDX (&lines, itr, idx) {\n+        struct sol_str_slice slice;\n+\n+        slice = sol_str_slice_remove_leading_whitespace(*itr);\n+        if (*slice.data == '#' || *slice.data == ';' || *slice.data == '\\0')\n+            continue;\n+\n+        slice = sol_str_slice_remove_trailing_whitespace(slice);\n+        ret = kmod_apply_value(kmod, slice);\n+        if (ret < 0)\n+            err = ret;\n+    }\n+    sol_vector_clear(&lines);\n+\n+finish:\n+    sol_file_reader_close(reader);\n+    return err;\n+}\n+\n+static int\n+kmod_apply_filename(struct kmod_ctx *kmod, int dfd, const char *file_name)\n+{\n+    int fd;\n+\n+    if (*file_name == '/' || dfd < 0)\n+        fd = open(file_name, O_RDONLY | O_CLOEXEC);\n+    else\n+        fd = openat(dfd, file_name, O_RDONLY | O_CLOEXEC);\n+\n+    if (fd < 0) {\n+        SOL_DBG(\"Could not open: %s\", file_name);\n+        return 0;\n+    }\n+\n+    return kmod_apply_file(kmod, fd);\n+}\n+\n+static int\n+kmod_conf_cmp(const void *data1, const void *data2)\n+{\n+    return strcmp((const char *)data1, (const char *)data2);\n+}\n+\n+static void\n+read_directory_to_vector(DIR *dir, struct sol_ptr_vector *vec)\n+{\n+    struct dirent ent, *entbuf = NULL;\n+    int r;\n+\n+    r = readdir_r(dir, &ent, &entbuf);\n+    while (r == 0 && entbuf) {\n+        char *s, *dot = strrchr(ent.d_name, '.');\n+\n+        if (!dot || !streq(dot, \".conf\")) {\n+            SOL_DBG(\"File name does not end in '.conf', ignoring: %s\",\n+                ent.d_name);\n+            goto next;\n+        }\n+\n+        s = strdup(ent.d_name);\n+        if (!s) {\n+            SOL_WRN(\"Could not allocate memory to hold dir entry: %s, skipping.\",\n+                ent.d_name);\n+            goto next;\n+        }\n+\n+        sol_ptr_vector_insert_sorted(vec, s, kmod_conf_cmp);\n+\n+next:\n+        r = readdir_r(dir, &ent, &entbuf);\n+    }\n+}\n+\n+static void\n+kmod_coldplug_find_devices(struct kmod_data *kdata, DIR *dir)\n+{\n+    struct dirent ent, *entbuf = NULL;\n+    int r, dfd;\n+\n+    dfd = dirfd(dir);\n+    if (dfd < 0) {\n+        SOL_DBG(\"Could not obtain directory file descriptor\");\n+        return;\n+    }\n+\n+    r = readdir_r(dir, &ent, &entbuf);\n+    while (r == 0 && entbuf) {\n+        struct stat st;\n+\n+        if (!strcmp(ent.d_name, \".\") || !strcmp(ent.d_name, \"..\")) {","path":"src/modules/linux-micro/kmod/kmod.c","position":220,"original_position":220,"commit_id":"cc94700b9e317995bbe3f2632306b641e4e13a5f","original_commit_id":"cc94700b9e317995bbe3f2632306b641e4e13a5f","user":{"login":"lpereira","id":15001,"avatar_url":"https://avatars.githubusercontent.com/u/15001?v=3","gravatar_id":"","url":"https://api.github.com/users/lpereira","html_url":"https://github.com/lpereira","followers_url":"https://api.github.com/users/lpereira/followers","following_url":"https://api.github.com/users/lpereira/following{/other_user}","gists_url":"https://api.github.com/users/lpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/lpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpereira/subscriptions","organizations_url":"https://api.github.com/users/lpereira/orgs","repos_url":"https://api.github.com/users/lpereira/repos","events_url":"https://api.github.com/users/lpereira/events{/privacy}","received_events_url":"https://api.github.com/users/lpereira/received_events","type":"User","site_admin":false},"body":"This will process hidden files as well, is that on purpose?","created_at":"2015-10-26T21:16:23Z","updated_at":"2015-10-26T21:16:23Z","html_url":"https://github.com/solettaproject/soletta/pull/960#discussion_r43054283","pull_request_url":"https://api.github.com/repos/solettaproject/soletta/pulls/960","_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/comments/43054283"},"html":{"href":"https://github.com/solettaproject/soletta/pull/960#discussion_r43054283"},"pull_request":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/960"}}},"pull_request":{"url":"https://api.github.com/repos/solettaproject/soletta/pulls/960","id":48794156,"html_url":"https://github.com/solettaproject/soletta/pull/960","diff_url":"https://github.com/solettaproject/soletta/pull/960.diff","patch_url":"https://github.com/solettaproject/soletta/pull/960.patch","issue_url":"https://api.github.com/repos/solettaproject/soletta/issues/960","number":960,"state":"open","locked":false,"title":"Linux micro kmod v5","user":{"login":"dorileo","id":960327,"avatar_url":"https://avatars.githubusercontent.com/u/960327?v=3","gravatar_id":"","url":"https://api.github.com/users/dorileo","html_url":"https://github.com/dorileo","followers_url":"https://api.github.com/users/dorileo/followers","following_url":"https://api.github.com/users/dorileo/following{/other_user}","gists_url":"https://api.github.com/users/dorileo/gists{/gist_id}","starred_url":"https://api.github.com/users/dorileo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorileo/subscriptions","organizations_url":"https://api.github.com/users/dorileo/orgs","repos_url":"https://api.github.com/users/dorileo/repos","events_url":"https://api.github.com/users/dorileo/events{/privacy}","received_events_url":"https://api.github.com/users/dorileo/received_events","type":"User","site_admin":false},"body":"## Changes\r\n  + v2 (since #844)\r\n    - impemented coldplug;\r\n    - implemented hotplug;\r\n    - fixed issues pointed in the last version;\r\n    - introduced patches:\r\n         - str-slice: implement trailing + leading whitespace helpers\r\n         - file-reader: introduce sol_file_reader_fd() API\r\n         - linux-micro: fix sysctl directory traversal\r\n\r\n  + v3 (since #877)\r\n      - fixed issues pointed by @lpereira and @barbieri in the last review (#877);\r\n\r\n  + v4 (since #916)\r\n     - fixed issues pointed by @lpereira in the last review (#916);\r\n     - split the uevent handling function to its own source code (sharing between modules);\r\n     - added the ```linux-micro: automount``` patch;\r\n     - added unit tests to the patch ```str-slice: implement trailing + leading whitespace helpers```;\r\n\r\n  + v5 (since #935)\r\n    - fixed issues pointed by @lpereira in the last review (#935);\r\n    - moved uevent api to ```sol_platform_linux```;\r\n    - added ```mount/umount/list mount points``` api's - with async options;\r\n    - migrated the fstab linux-micro service to use the ```sol_platform_mount()``` api;\r\n    - migrated the automount linux-micro service to use the ```sol_platform_mount()``` api;\r\n    - changed the general approach for the ```str-slice: implement trailing + leading whitespace helpers``` and fixed the addr sanitizer issue;\r\n\r\n## Rationale\r\nImplements the modprobe process following the systemd's modules-load.d\r\nspecification, also does the coldplug module loading - which consists in\r\nlooking up devices described in the sysfs and loading their respective\r\nmodules based on the modalias descriptors.\r\n\r\nThis module will also handle the hotplug events, notified by the kernel\r\nvia uevent netlink channel.","created_at":"2015-10-26T20:41:18Z","updated_at":"2015-10-26T21:16:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9b21f3c57ddf9bcd246041b769a05a83092c276","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/solettaproject/soletta/pulls/960/commits","review_comments_url":"https://api.github.com/repos/solettaproject/soletta/pulls/960/comments","review_comment_url":"https://api.github.com/repos/solettaproject/soletta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solettaproject/soletta/issues/960/comments","statuses_url":"https://api.github.com/repos/solettaproject/soletta/statuses/cc94700b9e317995bbe3f2632306b641e4e13a5f","head":{"label":"dorileo:linux-micro-kmod-v5","ref":"linux-micro-kmod-v5","sha":"cc94700b9e317995bbe3f2632306b641e4e13a5f","user":{"login":"dorileo","id":960327,"avatar_url":"https://avatars.githubusercontent.com/u/960327?v=3","gravatar_id":"","url":"https://api.github.com/users/dorileo","html_url":"https://github.com/dorileo","followers_url":"https://api.github.com/users/dorileo/followers","following_url":"https://api.github.com/users/dorileo/following{/other_user}","gists_url":"https://api.github.com/users/dorileo/gists{/gist_id}","starred_url":"https://api.github.com/users/dorileo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorileo/subscriptions","organizations_url":"https://api.github.com/users/dorileo/orgs","repos_url":"https://api.github.com/users/dorileo/repos","events_url":"https://api.github.com/users/dorileo/events{/privacy}","received_events_url":"https://api.github.com/users/dorileo/received_events","type":"User","site_admin":false},"repo":{"id":37610388,"name":"soletta","full_name":"dorileo/soletta","owner":{"login":"dorileo","id":960327,"avatar_url":"https://avatars.githubusercontent.com/u/960327?v=3","gravatar_id":"","url":"https://api.github.com/users/dorileo","html_url":"https://github.com/dorileo","followers_url":"https://api.github.com/users/dorileo/followers","following_url":"https://api.github.com/users/dorileo/following{/other_user}","gists_url":"https://api.github.com/users/dorileo/gists{/gist_id}","starred_url":"https://api.github.com/users/dorileo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorileo/subscriptions","organizations_url":"https://api.github.com/users/dorileo/orgs","repos_url":"https://api.github.com/users/dorileo/repos","events_url":"https://api.github.com/users/dorileo/events{/privacy}","received_events_url":"https://api.github.com/users/dorileo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dorileo/soletta","description":"Soletta Project is a framework for making IoT devices.  With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.  Portable and scalable, it abstracts details of hardware and OS, enabling developers to reuse their code and knowledge on different targets.","fork":true,"url":"https://api.github.com/repos/dorileo/soletta","forks_url":"https://api.github.com/repos/dorileo/soletta/forks","keys_url":"https://api.github.com/repos/dorileo/soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dorileo/soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dorileo/soletta/teams","hooks_url":"https://api.github.com/repos/dorileo/soletta/hooks","issue_events_url":"https://api.github.com/repos/dorileo/soletta/issues/events{/number}","events_url":"https://api.github.com/repos/dorileo/soletta/events","assignees_url":"https://api.github.com/repos/dorileo/soletta/assignees{/user}","branches_url":"https://api.github.com/repos/dorileo/soletta/branches{/branch}","tags_url":"https://api.github.com/repos/dorileo/soletta/tags","blobs_url":"https://api.github.com/repos/dorileo/soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dorileo/soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dorileo/soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/dorileo/soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dorileo/soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/dorileo/soletta/languages","stargazers_url":"https://api.github.com/repos/dorileo/soletta/stargazers","contributors_url":"https://api.github.com/repos/dorileo/soletta/contributors","subscribers_url":"https://api.github.com/repos/dorileo/soletta/subscribers","subscription_url":"https://api.github.com/repos/dorileo/soletta/subscription","commits_url":"https://api.github.com/repos/dorileo/soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/dorileo/soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/dorileo/soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/dorileo/soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/dorileo/soletta/contents/{+path}","compare_url":"https://api.github.com/repos/dorileo/soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dorileo/soletta/merges","archive_url":"https://api.github.com/repos/dorileo/soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dorileo/soletta/downloads","issues_url":"https://api.github.com/repos/dorileo/soletta/issues{/number}","pulls_url":"https://api.github.com/repos/dorileo/soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/dorileo/soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/dorileo/soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dorileo/soletta/labels{/name}","releases_url":"https://api.github.com/repos/dorileo/soletta/releases{/id}","created_at":"2015-06-17T17:36:30Z","updated_at":"2015-06-17T17:36:31Z","pushed_at":"2015-10-26T20:36:49Z","git_url":"git://github.com/dorileo/soletta.git","ssh_url":"git@github.com:dorileo/soletta.git","clone_url":"https://github.com/dorileo/soletta.git","svn_url":"https://github.com/dorileo/soletta","homepage":"","size":9471,"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":"solettaproject:master","ref":"master","sha":"114cf120a7f4720c91e8ce1f5b3bdb7020694888","user":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":37087063,"name":"soletta","full_name":"solettaproject/soletta","owner":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solettaproject/soletta","description":"Soletta Project is a framework for making IoT devices.  With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.  ","fork":false,"url":"https://api.github.com/repos/solettaproject/soletta","forks_url":"https://api.github.com/repos/solettaproject/soletta/forks","keys_url":"https://api.github.com/repos/solettaproject/soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solettaproject/soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solettaproject/soletta/teams","hooks_url":"https://api.github.com/repos/solettaproject/soletta/hooks","issue_events_url":"https://api.github.com/repos/solettaproject/soletta/issues/events{/number}","events_url":"https://api.github.com/repos/solettaproject/soletta/events","assignees_url":"https://api.github.com/repos/solettaproject/soletta/assignees{/user}","branches_url":"https://api.github.com/repos/solettaproject/soletta/branches{/branch}","tags_url":"https://api.github.com/repos/solettaproject/soletta/tags","blobs_url":"https://api.github.com/repos/solettaproject/soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solettaproject/soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solettaproject/soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/solettaproject/soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solettaproject/soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/solettaproject/soletta/languages","stargazers_url":"https://api.github.com/repos/solettaproject/soletta/stargazers","contributors_url":"https://api.github.com/repos/solettaproject/soletta/contributors","subscribers_url":"https://api.github.com/repos/solettaproject/soletta/subscribers","subscription_url":"https://api.github.com/repos/solettaproject/soletta/subscription","commits_url":"https://api.github.com/repos/solettaproject/soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/solettaproject/soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/solettaproject/soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/solettaproject/soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/solettaproject/soletta/contents/{+path}","compare_url":"https://api.github.com/repos/solettaproject/soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solettaproject/soletta/merges","archive_url":"https://api.github.com/repos/solettaproject/soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solettaproject/soletta/downloads","issues_url":"https://api.github.com/repos/solettaproject/soletta/issues{/number}","pulls_url":"https://api.github.com/repos/solettaproject/soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/solettaproject/soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/solettaproject/soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solettaproject/soletta/labels{/name}","releases_url":"https://api.github.com/repos/solettaproject/soletta/releases{/id}","created_at":"2015-06-08T19:13:18Z","updated_at":"2015-10-21T02:59:51Z","pushed_at":"2015-10-26T20:48:49Z","git_url":"git://github.com/solettaproject/soletta.git","ssh_url":"git@github.com:solettaproject/soletta.git","clone_url":"https://github.com/solettaproject/soletta.git","svn_url":"https://github.com/solettaproject/soletta","homepage":"http://solettaproject.org","size":27655,"stargazers_count":49,"watchers_count":49,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":39,"forks":33,"open_issues":39,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/960"},"html":{"href":"https://github.com/solettaproject/soletta/pull/960"},"issue":{"href":"https://api.github.com/repos/solettaproject/soletta/issues/960"},"comments":{"href":"https://api.github.com/repos/solettaproject/soletta/issues/960/comments"},"review_comments":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/960/comments"},"review_comment":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/960/commits"},"statuses":{"href":"https://api.github.com/repos/solettaproject/soletta/statuses/cc94700b9e317995bbe3f2632306b641e4e13a5f"}}}}