~ubuntu-branches/ubuntu/lucid/gpgme1.0/lucid

« back to all changes in this revision

Viewing changes to src/posix-util.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman, Bhavani Shankar, Scott Kitterman
  • Date: 2008-12-31 02:39:33 UTC
  • mfrom: (1.1.6 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081231023933-zi5r2w9vf7fdz0x9
Tags: 1.1.8-1ubuntu1
[ Bhavani Shankar ]
* Merge from debian unstable, remaining changes: LP: #311666
  - debian/rules: enable tests

[ Scott Kitterman ]
* Re-enable testsuite on armel since it's no longer a first build 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* posix-util.c - Utility functions for Posix
 
2
   Copyright (C) 2001 Werner Koch (dd9jn)
 
3
   Copyright (C) 2001, 2002, 2004 g10 Code GmbH
 
4
 
 
5
   This file is part of GPGME.
 
6
 
 
7
   GPGME is free software; you can redistribute it and/or modify it
 
8
   under the terms of the GNU Lesser General Public License as
 
9
   published by the Free Software Foundation; either version 2.1 of
 
10
   the License, or (at your option) any later version.
 
11
   
 
12
   GPGME is distributed in the hope that it will be useful, but
 
13
   WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
   Lesser General Public License for more details.
 
16
   
 
17
   You should have received a copy of the GNU Lesser General Public
 
18
   License along with this program; if not, write to the Free Software
 
19
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
20
   02111-1307, USA.  */
 
21
 
 
22
#ifdef HAVE_CONFIG_H
 
23
#include <config.h>
 
24
#endif
 
25
#include <stdio.h>
 
26
#include <stdlib.h>
 
27
#include <string.h>
 
28
#include <assert.h>
 
29
 
 
30
#include "util.h"
 
31
 
 
32
const char *
 
33
_gpgme_get_gpg_path (void)
 
34
{
 
35
#ifdef GPG_PATH
 
36
  return GPG_PATH;
 
37
#else
 
38
  return NULL;
 
39
#endif
 
40
}
 
41
 
 
42
const char *
 
43
_gpgme_get_gpgsm_path (void)
 
44
{
 
45
#ifdef GPGSM_PATH
 
46
  return GPGSM_PATH;
 
47
#else
 
48
  return NULL;
 
49
#endif
 
50
}
 
51
 
 
52
const char *
 
53
_gpgme_get_gpgconf_path (void)
 
54
{
 
55
#ifdef GPGCONF_PATH
 
56
  return GPGCONF_PATH;
 
57
#else
 
58
  return NULL;
 
59
#endif
 
60
}
 
61
 
 
62
/* See w32-util.c */
 
63
int
 
64
_gpgme_get_conf_int (const char *key, int *value)
 
65
{
 
66
  return 0;
 
67
}
 
68
 
 
69
void 
 
70
_gpgme_allow_set_foregound_window (pid_t pid)
 
71
{
 
72
  (void)pid;
 
73
  /* Not needed.  */
 
74
}