Show a patch.

GET /api/patches/93/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 93,
    "url": "https://patchwork.libcamera.org/api/patches/93/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/93/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20181228075743.28637-4-jacopo@jmondi.org>",
    "date": "2018-12-28T07:57:42",
    "name": "[libcamera-devel,RESEND,v2,3/4] libcamera: media device: Add MediaDeviceDesc",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": false,
    "hash": "b42237883f14304fc3d26e9f7b4773135f8d9906",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/93/mbox/",
    "series": [
        {
            "id": 40,
            "url": "https://patchwork.libcamera.org/api/series/40/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=40",
            "date": "2018-12-28T07:57:39",
            "name": "Add MediaDevice and associated MediaObject",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/40/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/93/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/93/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net\n\t[217.70.183.201])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2DB9860B32\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 28 Dec 2018 08:58:00 +0100 (CET)",
            "from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay8-d.mail.gandi.net (Postfix) with ESMTPSA id BE7E81BF206;\n\tFri, 28 Dec 2018 07:57:59 +0000 (UTC)"
        ],
        "X-Originating-IP": "2.224.242.101",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 28 Dec 2018 08:57:42 +0100",
        "Message-Id": "<20181228075743.28637-4-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20181228075743.28637-1-jacopo@jmondi.org>",
        "References": "<20181228075743.28637-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH RESEND v2 3/4] libcamera: media device:\n\tAdd MediaDeviceDesc",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "X-List-Received-Date": "Fri, 28 Dec 2018 07:58:00 -0000"
    },
    "content": "Add the MediaDeviceDesc class which represents the description of a\nmedia graph and the entities it contains.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/include/media_device.h | 42 ++++++++++++++++++++++++++++\n 1 file changed, 42 insertions(+)\n\n--\n2.20.1",
    "diff": "diff --git a/src/libcamera/include/media_device.h b/src/libcamera/include/media_device.h\nindex 642eea9..e1b26e2 100644\n--- a/src/libcamera/include/media_device.h\n+++ b/src/libcamera/include/media_device.h\n@@ -19,6 +19,48 @@\n\n namespace libcamera {\n\n+/**\n+ * \\class MediaDeviceDesc\n+ * \\brief Collects the representation of a media device\n+ *\n+ * The MediaDeviceDesc class allows components of the library to create\n+ * a description of a media device, specifying a driver name and a list of\n+ * entity names contained in it.\n+ */\n+class MediaDeviceDesc\n+{\n+public:\n+\t/**\n+\t * \\brief Construct a representation of a media device handled\n+\t *\t  by driver \\a driver's name\n+\t * \\param driver The name of the driver that controls the media graph\n+\t *\t  as returned by MEDIA_IOC_DEVICE_INFO\n+\t */\n+\tMediaDeviceDesc(const std::string &driver) : driver_(driver) { }\n+\n+\t/**\n+\t * \\brief Add an entity name to the list of entities handled in the\n+\t *\t  media graph.\n+\t * \\param entity The name of the entity to add\n+\t */\n+\tvoid addEntity(const std::string entity) { entities_.push_back(entity); }\n+\n+\t/**\n+\t * \\brief Return the name of the driver that controls the media graph\n+\t *\t  as returned by MEDIA_IOC_DEVICE_INFO\n+\t */\n+\tconst std::string driver() { return driver_; }\n+\n+\t/**\n+\t * \\brief Return the list of entities names\n+\t */\n+\tstd::vector<std::string> &entities() { return entities_; }\n+\n+private:\n+\tstd::string driver_;\n+\tstd::vector<std::string> entities_;\n+};\n+\n class MediaDevice\n {\n public:\n",
    "prefixes": [
        "libcamera-devel",
        "RESEND",
        "v2",
        "3/4"
    ]
}