Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libxfce4util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
libxfce4util
Commits
81c383d2
Commit
81c383d2
authored
21 years ago
by
Benedikt Meurer
Browse files
Options
Downloads
Patches
Plain Diff
Header files are now only included if found by configure.
(Old svn revision: 675)
parent
714701e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libxfce4util/filter.c
+7
-0
7 additions, 0 deletions
libxfce4util/filter.c
libxfce4util/option.c
+4
-0
4 additions, 0 deletions
libxfce4util/option.c
libxfce4util/test.c
+0
-43
0 additions, 43 deletions
libxfce4util/test.c
libxfce4util/util.c
+2
-0
2 additions, 0 deletions
libxfce4util/util.c
with
13 additions
and
43 deletions
libxfce4util/filter.c
+
7
−
0
View file @
81c383d2
...
...
@@ -28,11 +28,18 @@
#include
<config.h>
#endif
/* !HAVE_CONFIG_H */
#ifdef HAVE_SYS_TYPES_H
#include
<sys/types.h>
#endif
#include
<sys/wait.h>
#include
<errno.h>
#ifdef HAVE_STDLIB_H
#include
<stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include
<unistd.h>
#endif
#include
"filter.h"
...
...
This diff is collapsed.
Click to expand it.
libxfce4util/option.c
+
4
−
0
View file @
81c383d2
...
...
@@ -28,8 +28,12 @@
#include
<config.h>
#endif
/* !HAVE_CONFIG_H */
#ifdef HAVE_STDLIB_H
#include
<stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include
<string.h>
#endif
#include
<glib.h>
...
...
This diff is collapsed.
Click to expand it.
libxfce4util/test.c
deleted
100644 → 0
+
0
−
43
View file @
714701e8
/*
*/
#include
<fcntl.h>
#include
<stdio.h>
#include
<unistd.h>
#include
"filter.h"
gchar
*
args
[]
=
{
"cat"
,
NULL
};
int
main
(
int
argc
,
char
**
argv
)
{
XfceFilterList
*
list
;
XfceFilter
*
f
;
int
in
,
out
;
int
r
;
if
(
argc
!=
3
)
{
printf
(
"Usage: in out
\n
"
);
return
(
1
);
}
if
((
in
=
open
(
argv
[
1
],
O_RDONLY
))
<
0
)
err
(
1
,
"open()"
);
if
((
out
=
open
(
argv
[
2
],
O_CREAT
|
O_TRUNC
|
O_WRONLY
))
<
0
)
err
(
1
,
"open()"
);
list
=
xfce_filterlist_new
();
f
=
xfce_filter_new
(
"cat"
,
args
);
xfce_filterlist_append
(
list
,
f
);
if
((
r
=
xfce_filterlist_execute
(
list
,
in
,
out
))
<
0
)
perror
(
"xfce_filterlist_execute()"
);
else
printf
(
"exit code: %d
\n
"
,
r
);
}
This diff is collapsed.
Click to expand it.
libxfce4util/util.c
+
2
−
0
View file @
81c383d2
...
...
@@ -33,7 +33,9 @@
#endif
#include
<errno.h>
#include
<stdio.h>
#ifdef HAVE_STDLIB_H
#include
<stdlib.h>
#endif
#include
<glib.h>
...
...
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