[refactor] change file names
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "teleportapp.h"
|
||||
#include "teleport.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
headers = files(
|
||||
'browser.h',
|
||||
'get.h',
|
||||
'publish.h',
|
||||
'server.h',
|
||||
'teleportappwin.h',
|
||||
'teleportpeer.h',
|
||||
'teleportapp.h'
|
||||
'teleport-browser.h',
|
||||
'teleport-get.h',
|
||||
'teleport-publish.h',
|
||||
'teleport-server.h',
|
||||
'teleport-window.h',
|
||||
'teleport-peer.h',
|
||||
'teleport.h'
|
||||
)
|
||||
|
||||
install_headers(headers, subdir: meson.project_name())
|
||||
@@ -17,13 +17,13 @@ install_headers(headers, subdir: meson.project_name())
|
||||
################
|
||||
|
||||
sources = files(
|
||||
'browser.c',
|
||||
'get.c',
|
||||
'publish.c',
|
||||
'server.c',
|
||||
'teleportapp.c',
|
||||
'teleportappwin.c',
|
||||
'teleportpeer.c',
|
||||
'teleport-browser.c',
|
||||
'teleport-get.c',
|
||||
'teleport-publish.c',
|
||||
'teleport-server.c',
|
||||
'teleport.c',
|
||||
'teleport-window.c',
|
||||
'teleport-peer.c',
|
||||
'main.c'
|
||||
)
|
||||
|
||||
|
||||
@@ -12,9 +12,10 @@
|
||||
#include <avahi-common/malloc.h>
|
||||
#include <avahi-common/error.h>
|
||||
#include <avahi-common/thread-watch.h>
|
||||
#include "teleportapp.h"
|
||||
#include "teleportpeer.h"
|
||||
#include "browser.h"
|
||||
|
||||
#include "teleport.h"
|
||||
#include "teleport-peer.h"
|
||||
#include "teleport-browser.h"
|
||||
|
||||
//static AvahiSimplePoll *simple_poll = NULL;
|
||||
static AvahiThreadedPoll *threaded_poll = NULL;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef __BROWSER_H
|
||||
#define __BROWSER_H
|
||||
#ifndef __TELEPORT_BROWSER_H
|
||||
#define __TELEPORT_BROWSER_H
|
||||
|
||||
extern int run_avahi_service(TeleportPeer *);
|
||||
void avahi_shutdown(void);
|
||||
|
||||
#endif /* __BROWSER_H */
|
||||
#endif /* __TELEPORT_BROWSER_H */
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <libsoup/soup.h>
|
||||
#include "teleportapp.h"
|
||||
#include "get.h"
|
||||
#include "teleport.h"
|
||||
#include "teleport-get.h"
|
||||
|
||||
static gboolean debug;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __GET_H
|
||||
#define __GET_H
|
||||
#ifndef __TELEPORT_GET_H
|
||||
#define __TELEPORT_GET_H
|
||||
|
||||
#include <libsoup/soup.h>
|
||||
|
||||
@@ -10,4 +10,4 @@ int saveFile (SoupMessage *, const gchar *, const gchar *);
|
||||
gchar * getFilePath (const gchar *, const gchar *);
|
||||
int get (char *, const gchar *, const gchar *, const gchar *);
|
||||
|
||||
#endif /* __GET_H */
|
||||
#endif /* __TELEPORT_GET_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include "teleportpeer.h"
|
||||
#include "teleport-peer.h"
|
||||
|
||||
enum {
|
||||
ADD, REMOVE, N_SIGNALS
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __TELEPORTPEER_H
|
||||
#define __TELEPORTPEER_H
|
||||
#ifndef __TELEPORT_PEER_H
|
||||
#define __TELEPORT_PEER_H
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@@ -20,4 +20,4 @@ void teleport_peer_add_peer (TeleportPeer *self, gchar * name, gchar * ip, gint
|
||||
void teleport_peer_remove_peer (TeleportPeer *, Peer *);
|
||||
void teleport_peer_remove_peer_by_name (TeleportPeer *, gchar *);
|
||||
|
||||
#endif /* __TELEPORTPEER_H */
|
||||
#endif /* __TELEPORT_PEER_H */
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
#include <avahi-common/timeval.h>
|
||||
#include <avahi-common/thread-watch.h>
|
||||
|
||||
#include "teleportapp.h"
|
||||
#include "teleportpeer.h"
|
||||
#include "publish.h"
|
||||
#include "teleport.h"
|
||||
#include "teleport-peer.h"
|
||||
#include "teleport-publish.h"
|
||||
|
||||
static AvahiThreadedPoll *threaded_poll = NULL;
|
||||
static AvahiEntryGroup *group = NULL;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef __PUBLISH_H
|
||||
#define __PUBLISH_H
|
||||
#ifndef __TELEPORT_PUBLISH_H
|
||||
#define __TELEPORT_PUBLISH_H
|
||||
|
||||
|
||||
extern int run_avahi_publish_service(char *);
|
||||
extern void shutdown_avahi_publish_service(void);
|
||||
extern void update_service(char *);
|
||||
|
||||
#endif /* __PUBLISH_H */
|
||||
#endif /* __TELEPORT_PUBLISH_H */
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
||||
/*
|
||||
* Copyright (C) 2001-2003, Ximian, Inc.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -12,9 +7,9 @@
|
||||
#include <libsoup/soup.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include "get.h"
|
||||
#include "server.h"
|
||||
#include "teleportapp.h"
|
||||
#include "teleport-get.h"
|
||||
#include "teleport-server.h"
|
||||
#include "teleport.h"
|
||||
|
||||
static int port;
|
||||
static SoupServer *glob_server;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef __SERVER_H
|
||||
#define __SERVER_H
|
||||
#ifndef __TELEPORT_SERVER_H
|
||||
#define __TELEPORT_SERVER_H
|
||||
|
||||
|
||||
extern int run_http_server(void);
|
||||
extern int addRouteToServer(char *, char *, char *);
|
||||
|
||||
#endif /* __SERVER_H */
|
||||
#endif /* __TELEPORT_SERVER_H */
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "teleportapp.h"
|
||||
#include "teleportappwin.h"
|
||||
#include "server.h"
|
||||
#include "teleportpeer.h"
|
||||
#include "teleport.h"
|
||||
#include "teleport-window.h"
|
||||
#include "teleport-server.h"
|
||||
#include "teleport-peer.h"
|
||||
|
||||
GtkWidget *find_child(GtkWidget *, const gchar *);
|
||||
TeleportAppWindow *mainWin;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef __TELEPORTAPPWIN_H
|
||||
#define __TELEPORTAPPWIN_H
|
||||
#ifndef __TELEPORT_WINDOW_H
|
||||
#define __TELEPORT_WINDOW_H
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "teleportapp.h"
|
||||
#include "teleportpeer.h"
|
||||
#include "teleport.h"
|
||||
#include "teleport-peer.h"
|
||||
|
||||
|
||||
#define TELEPORT_APP_WINDOW_TYPE (teleport_app_window_get_type ())
|
||||
@@ -16,4 +16,4 @@ G_DECLARE_FINAL_TYPE (TeleportAppWindow, teleport_app_window, TELEPORT, APP_WIND
|
||||
extern void update_remote_device_list_remove(TeleportAppWindow *, Peer *);
|
||||
|
||||
|
||||
#endif /* __TELEPORTAPPWIN_H */
|
||||
#endif /* __TELEPORT_WINDOW_H */
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "teleportapp.h"
|
||||
#include "teleportpeer.h"
|
||||
#include "teleportappwin.h"
|
||||
#include "browser.h"
|
||||
#include "publish.h"
|
||||
#include "server.h"
|
||||
#include "get.h"
|
||||
#include "teleport.h"
|
||||
#include "teleport-peer.h"
|
||||
#include "teleport-window.h"
|
||||
#include "teleport-browser.h"
|
||||
#include "teleport-publish.h"
|
||||
#include "teleport-server.h"
|
||||
#include "teleport-get.h"
|
||||
|
||||
|
||||
void save_file_callback (GSimpleAction *simple,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef __TELEPORTAPP_H
|
||||
#define __TELEPORTAPP_H
|
||||
#ifndef __TELEPORT_H
|
||||
#define __TELEPORT_H
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "teleportpeer.h"
|
||||
#include "teleport-peer.h"
|
||||
|
||||
#define TELEPORT_APP_TYPE (teleport_app_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (TeleportApp, teleport_app, TELEPORT, APP, GtkApplication)
|
||||
@@ -33,4 +33,4 @@ void callback_notify_user (GObject *,
|
||||
gpointer);
|
||||
|
||||
|
||||
#endif /* __TELEPORTAPP_H */
|
||||
#endif /* __TELEPORT_H */
|
||||
|
||||
Reference in New Issue
Block a user