summaryrefslogtreecommitdiffstats
path: root/src/blueshift_drm_c.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-12 20:32:23 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-12 20:32:23 +0100
commit782093450b535c9957521fe40641e3de3619254c (patch)
tree9c23e54d9882beee5ec816150edfffe0919fc0a5 /src/blueshift_drm_c.c
parentconnect to multiple connectors concurrently (diff)
downloadblueshift-782093450b535c9957521fe40641e3de3619254c.tar.gz
blueshift-782093450b535c9957521fe40641e3de3619254c.tar.bz2
blueshift-782093450b535c9957521fe40641e3de3619254c.tar.xz
m + cython side of drm
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_drm_c.c')
-rw-r--r--src/blueshift_drm_c.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/blueshift_drm_c.c b/src/blueshift_drm_c.c
index 121b689..a521545 100644
--- a/src/blueshift_drm_c.c
+++ b/src/blueshift_drm_c.c
@@ -89,7 +89,7 @@ static long card_connection_reuse_size = 0;
/**
- * Free all resources, but your need to close all connections first
+ * Free all resources, but you need to close all connections first
*/
void blueshift_drm_close()
{
@@ -446,10 +446,10 @@ const char* blueshift_drm_get_connector_type_name(int connection, int connector_
* @param connector_index The index of the connector
* @param edid Storage location for the EDID, it should be 128 bytes, 256 bytes + zero termination if hex
* @param size The size allocated to `edid` excluding your zero termination
- * @param hex Whether to convert to hexadecimal representation, this is preferable
+ * @param hexadecimal Whether to convert to hexadecimal representation, this is preferable
* @return The length of the found value, 0 if none, as if hex is false
*/
-long blueshift_drm_get_edid(int connection, int connector_index, char* edid, long size, int hex)
+long blueshift_drm_get_edid(int connection, int connector_index, char* edid, long size, int hexadecimal)
{
card_connection* card = card_connections + connection;
drmModeConnector* connector = *(card->connectors + connector_index);
@@ -464,7 +464,7 @@ long blueshift_drm_get_edid(int connection, int connector_index, char* edid, lon
if (!strcmp("EDID", prop->name))
{
drmModePropertyBlobRes* blob = drmModeGetPropertyBlob(fd, connector->prop_values[prop_i]);
- if (hex)
+ if (hexadecimal)
{
rc += blob->length;
uint32_t n = size / 2;
@@ -489,7 +489,7 @@ long blueshift_drm_get_edid(int connection, int connector_index, char* edid, lon
}
-
+/*
int main(int argc, char** argv)
{
int card_n = blueshift_drm_card_count();
@@ -607,4 +607,5 @@ int main(int argc, char** argv)
blueshift_drm_close();
return 0;
}
+*/