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