summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2011-06-01 11:34:32 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2011-06-01 11:34:32 -0400
commit139c4f04e215105b220a68ea90065039246abcd8 (patch)
treebb75e110e4cefcf93caecb442efab3ba29a15c0e /src
parentec3068a14316948a20141f320d930dd841fd0b9d (diff)
s/NITPICKER/LINPICKER/
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c4
-rw-r--r--src/buffer.h6
-rw-r--r--src/client.c10
-rw-r--r--src/client.h6
-rw-r--r--src/display.h6
-rw-r--r--src/input.h6
-rw-r--r--src/server.h6
-rw-r--r--src/view.c13
-rw-r--r--src/view.h6
9 files changed, 18 insertions, 45 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1a6436e..7fd4b99 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -61,7 +61,6 @@ buffer_free(struct buffer *b)
free(b);
}
-/*** LOOK UP BUFFER STRUCT BY CLIENT ID AND BUFFER ID ***/
struct buffer *
lookup_buffer(int domid, int buf_id)
{
@@ -76,7 +75,6 @@ lookup_buffer(int domid, int buf_id)
}
-/*** INTERFACE: IMPORT NEW BUFFER INTO NITPICKER ***/
struct buffer *
buffer_new(struct client *c, const DFBSurfaceDescription *desc, unsigned int flags)
{
@@ -154,7 +152,6 @@ buffer_resize(struct buffer *b, const DFBSurfaceDescription *desc)
return 0;
}
-/*** INTERFACE: REMOVE BUFFER FROM NITPICKER ***/
void
buffer_remove(struct buffer *b) {
/* close all views */
@@ -168,7 +165,6 @@ buffer_remove(struct buffer *b) {
buffer_free(b);
}
-/*** INTERFACE: REFRESH BUFFER AREA ***/
void
buffer_refresh(struct buffer *b, int x, int y, int w, int h)
{
diff --git a/src/buffer.h b/src/buffer.h
index 1f30da9..724b916 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -4,8 +4,8 @@
* This provides the external interface for buffer.c.
*/
-#ifndef _NITPICKER_BUFFER_H_
-#define _NITPICKER_BUFFER_H_
+#ifndef _LINPICKER_BUFFER_H_
+#define _LINPICKER_BUFFER_H_
#include <directfb.h>
@@ -49,4 +49,4 @@ buffer_refresh(struct buffer *b, int x, int y, int w, int h);
int
buffer_resize(struct buffer *b, const DFBSurfaceDescription *desc);
-#endif /* _NITPICKER_BUFFER_H_ */
+#endif /* _LINPICKER_BUFFER_H_ */
diff --git a/src/client.c b/src/client.c
index c50f9b8..0d6488a 100644
--- a/src/client.c
+++ b/src/client.c
@@ -27,11 +27,6 @@
static struct client_list clients;
-/*************************************************
- *** FUNCTIONS TO ACCESS CLIENT REPRESENTATION ***
- *************************************************/
-
-/*** FIND THE CLIENT STRUCTURE FOR A GIVEN CLIENT ID ***/
struct client *
client_lookup(int clientid)
{
@@ -43,7 +38,6 @@ client_lookup(int clientid)
return NULL;
}
-/*** INIT CLIENT STRUCTURE AND ADD CLIENT TO CLIENT LIST ***/
struct client *
client_add(int domid, unsigned short max_views, unsigned short max_buffers)
{
@@ -66,8 +60,6 @@ client_add(int domid, unsigned short max_views, unsigned short max_buffers)
return c;
}
-
-/*** REMOVE CLIENT FROM NITPICKER SESSION ***/
void
client_remove(struct client *c)
{
@@ -83,8 +75,6 @@ client_remove(struct client *c)
free(c);
}
-
-/*** REMOVE ALL CLIENTS FROM NITPICKER SESSION ***/
void
client_remove_all(void)
{
diff --git a/src/client.h b/src/client.h
index 642ddad..be74402 100644
--- a/src/client.h
+++ b/src/client.h
@@ -15,8 +15,8 @@
* COPYING file for details.
*/
-#ifndef _NITPICKER_CLIENT_H_
-#define _NITPICKER_CLIENT_H_
+#ifndef _LINPICKER_CLIENT_H_
+#define _LINPICKER_CLIENT_H_
#include "common.h"
#include "buffer.h"
@@ -70,4 +70,4 @@ void
client_remove_all(void);
-#endif /* _NITPICKER_CLIENT_H_ */
+#endif /* _LINPICKER_CLIENT_H_ */
diff --git a/src/display.h b/src/display.h
index a3d5ec4..6cc5be5 100644
--- a/src/display.h
+++ b/src/display.h
@@ -14,8 +14,8 @@
* COPYING file for details.
*/
-#ifndef _NITPICKER_DISPLAY_H_
-#define _NITPICKER_DISPLAY_H_
+#ifndef _LINPICKER_DISPLAY_H_
+#define _LINPICKER_DISPLAY_H_
#include <directfb.h>
@@ -122,4 +122,4 @@ display_get_height(void);
} \
}
-#endif /* _NITPICKER_DISPLAY_H_ */
+#endif /* _LINPICKER_DISPLAY_H_ */
diff --git a/src/input.h b/src/input.h
index eb02850..8d99a37 100644
--- a/src/input.h
+++ b/src/input.h
@@ -1,5 +1,5 @@
-#ifndef _NITPICKER_INPUT_H_
-#define _NITPICKER_INPUT_H_
+#ifndef _LINPICKER_INPUT_H_
+#define _LINPICKER_INPUT_H_
#include <linux/input.h>
@@ -38,4 +38,4 @@ input_initialize(int argc, char *argv[]);
void
input_shutdown(void);
-#endif /* _NITPICKER_INPUT_H_ */
+#endif /* _LINPICKER_INPUT_H_ */
diff --git a/src/server.h b/src/server.h
index aec4f7c..c3735de 100644
--- a/src/server.h
+++ b/src/server.h
@@ -1,8 +1,8 @@
-#ifndef _NITPICKER_SERVER_H_
-#define _NITPICKER_SERVER_H_
+#ifndef _LINPICKER_SERVER_H_
+#define _LINPICKER_SERVER_H_
int
server_set_fd_handler(int fd, void (*callback)(void *), void *closure);
-#endif /* _NITPICKER_SERVER_H_ */
+#endif /* _LINPICKER_SERVER_H_ */
diff --git a/src/view.c b/src/view.c
index 3d18607..5bdee2b 100644
--- a/src/view.c
+++ b/src/view.c
@@ -36,8 +36,6 @@ enum border_mode {
static struct view_tailq all_views;
static enum border_mode mode = BORDER_BORDER;
-
-/*** LOOK UP VIEW STRUCT BY CLIENT ID AND VIEW ID ***/
struct view *
view_lookup(struct client *c, int viewid)
{
@@ -51,8 +49,6 @@ view_lookup(struct client *c, int viewid)
}
-
-/*** UPDATE VIEW AREA ON SCREEN ***/
void
view_refresh(struct view *v)
{
@@ -144,11 +140,6 @@ view_free(struct view *v)
free(v);
}
-/***************************
- *** INTERFACE FUNCTIONS ***
- ***************************/
-
-/*** INTERFACE: CREATE NEW VIEW ***/
struct view *
view_new(struct client *c, struct buffer *b, int id, unsigned int flags)
{
@@ -217,8 +208,6 @@ view_new(struct client *c, struct buffer *b, int id, unsigned int flags)
return v;
}
-
-/*** INTERFACE: DESTROY VIEW ***/
void
view_remove(struct view *v)
{
@@ -276,7 +265,6 @@ view_update_surface(struct view *v)
return 0;
}
-/*** INTERFACE: SET VIEW POSITION, SIZE, AND BUFFER OFFSET ***/
int
view_set_viewport(struct view *v,
const DFBRectangle *bp, const DFBRectangle *sp,
@@ -305,7 +293,6 @@ view_set_viewport(struct view *v,
return 0;
}
-/*** INTERFACE: SET VIEW POSITION ONLY ***/
int
view_set_position(struct view *v, int x, int y)
{
diff --git a/src/view.h b/src/view.h
index 613b80a..df58d01 100644
--- a/src/view.h
+++ b/src/view.h
@@ -14,8 +14,8 @@
* COPYING file for details.
*/
-#ifndef _NITPICKER_VIEW_H_
-#define _NITPICKER_VIEW_H_
+#ifndef _LINPICKER_VIEW_H_
+#define _LINPICKER_VIEW_H_
#include <directfb.h>
@@ -100,4 +100,4 @@ view_toggle_labeling(void);
void
view_debug_dump(void);
-#endif /* _NITPICKER_VIEW_H_ */
+#endif /* _LINPICKER_VIEW_H_ */