~mdz/network-manager/ubuntu.0.7

« back to all changes in this revision

Viewing changes to src/NetworkManagerUtils.h

  • Committer: dcbw
  • Date: 2004-06-24 14:18:37 UTC
  • Revision ID: vcs-imports@canonical.com-20040624141837-b23a721fd03ea23f
Initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* NetworkManager -- Network link manager
 
2
 *
 
3
 * Dan Williams <dcbw@redhat.com>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * (C) Copyright 2004 Red Hat, Inc.
 
20
 */
 
21
 
 
22
#ifndef NETWORK_MANAGER_UTILS_H
 
23
#define NETWORK_MANAGER_UTILS_H
 
24
 
 
25
#include <glib.h>
 
26
#include <stdio.h>
 
27
#include <iwlib.h>
 
28
 
 
29
#include "NetworkManager.h"
 
30
 
 
31
#define NM_DEBUG_PRINT( s )                             if (debug) fprintf( stderr, s );
 
32
#define NM_DEBUG_PRINT_1( s, a )                        if (debug) fprintf( stderr, s, a );
 
33
#define NM_DEBUG_PRINT_2( s, a, b )             if (debug) fprintf( stderr, s, a, b );
 
34
#define NM_DEBUG_PRINT_3( s, a, b, c )          if (debug) fprintf( stderr, s, a, b, c );
 
35
#define NM_DEBUG_PRINT_4( s, a, b, c, d )       if (debug) fprintf( stderr, s, a, b, c, d );
 
36
 
 
37
 
 
38
gboolean                nm_try_acquire_mutex                    (GMutex *mutex, const char *func);
 
39
void                    nm_unlock_mutex                         (GMutex *mutex, const char *func);
 
40
 
 
41
int                     nm_null_safe_strcmp                             (const char *s1, const char *s2);
 
42
 
 
43
int                     nm_get_network_control_socket           (void);
 
44
 
 
45
void                    nm_dispose_scan_results                 (wireless_scan *result_list);
 
46
 
 
47
#endif