Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osdd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
osdd
Commits
187ecee4
Commit
187ecee4
authored
11 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Split osd.h and util.h
parent
69d6339d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
client.c
+1
-0
1 addition, 0 deletions
client.c
osd-alsa.c
+1
-0
1 addition, 0 deletions
osd-alsa.c
osd-batt.c
+1
-0
1 addition, 0 deletions
osd-batt.c
osd.h
+1
-23
1 addition, 23 deletions
osd.h
osdc.c
+1
-0
1 addition, 0 deletions
osdc.c
osdd.c
+2
-1
2 additions, 1 deletion
osdd.c
util.h
+27
-0
27 additions, 0 deletions
util.h
with
34 additions
and
24 deletions
client.c
+
1
−
0
View file @
187ecee4
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#include
<X11/Xatom.h>
#include
<X11/Xatom.h>
#undef DEBUG
#undef DEBUG
#include
"util.h"
#include
"osd.h"
#include
"osd.h"
static
Display
*
dpy
;
static
Display
*
dpy
;
...
...
This diff is collapsed.
Click to expand it.
osd-alsa.c
+
1
−
0
View file @
187ecee4
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#include
<getopt.h>
#include
<getopt.h>
#include
<alsa/asoundlib.h>
#include
<alsa/asoundlib.h>
#include
"util.h"
#include
"osd.h"
#include
"osd.h"
static
char
*
alsa_device
=
"default"
;
static
char
*
alsa_device
=
"default"
;
...
...
This diff is collapsed.
Click to expand it.
osd-batt.c
+
1
−
0
View file @
187ecee4
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include
<getopt.h>
#include
<getopt.h>
#include
<fcntl.h>
#include
<fcntl.h>
#include
"util.h"
#include
"osd.h"
#include
"osd.h"
static
int
check_mode
;
static
int
check_mode
;
...
...
This diff is collapsed.
Click to expand it.
osd.h
+
1
−
23
View file @
187ecee4
/*
/*
* On-screen Display Daemon --
Utility Functions
* On-screen Display Daemon --
Client Interface
*
*
* (c) 2010 Martin Mares <mj@ucw.cz>
* (c) 2010 Martin Mares <mj@ucw.cz>
*/
*/
#include
<inttypes.h>
#define NONRET __attribute__((noreturn))
#define FORMAT_CHECK(func,i,j) __attribute__((format(func,i,j)))
typedef
uint64_t
timestamp_t
;
/* util.c */
void
NONRET
FORMAT_CHECK
(
printf
,
1
,
2
)
die
(
char
*
fmt
,
...);
#ifdef DEBUG
#define DBG(f...) printf(f)
#else
#define DBG(f...) do { } while(0)
#endif
void
*
xmalloc
(
int
size
);
void
*
xrealloc
(
void
*
ptr
,
int
size
);
timestamp_t
get_current_time
(
void
);
/* client.c */
/* client.c */
void
osd_init
(
void
);
void
osd_init
(
void
);
...
...
This diff is collapsed.
Click to expand it.
osdc.c
+
1
−
0
View file @
187ecee4
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include
<X11/Xlib.h>
#include
<X11/Xlib.h>
#include
<X11/Xatom.h>
#include
<X11/Xatom.h>
#include
"util.h"
#include
"osd.h"
#include
"osd.h"
static
struct
osd_msg
*
msg
;
static
struct
osd_msg
*
msg
;
...
...
This diff is collapsed.
Click to expand it.
osdd.c
+
2
−
1
View file @
187ecee4
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
#include
<X11/Xatom.h>
#include
<X11/Xatom.h>
#undef DEBUG
#undef DEBUG
#include
"osd.h"
#include
"util.h"
#include
"display.h"
static
xosd
*
osd
;
static
xosd
*
osd
;
...
...
This diff is collapsed.
Click to expand it.
util.h
0 → 100644
+
27
−
0
View file @
187ecee4
/*
* On-screen Display Daemon -- Utility Functions
*
* (c) 2010--2013 Martin Mares <mj@ucw.cz>
*/
#include
<inttypes.h>
#define NONRET __attribute__((noreturn))
#define FORMAT_CHECK(func,i,j) __attribute__((format(func,i,j)))
typedef
uint64_t
timestamp_t
;
/* util.c */
void
NONRET
FORMAT_CHECK
(
printf
,
1
,
2
)
die
(
char
*
fmt
,
...);
#ifdef DEBUG
#define DBG(f...) printf(f)
#else
#define DBG(f...) do { } while(0)
#endif
void
*
xmalloc
(
int
size
);
void
*
xrealloc
(
void
*
ptr
,
int
size
);
timestamp_t
get_current_time
(
void
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment