forked from Mirrors/sngrep
storage: move storage files to a new dir
This commit is contained in:
parent
bc70c41efc
commit
ecc26c6f22
|
@ -41,6 +41,8 @@ set(SOURCES
|
|||
src/capture/capture.c
|
||||
src/capture/capture_pcap.c
|
||||
src/capture/capture_txt.c
|
||||
src/glib/gasyncqueuesource.c
|
||||
src/glib/glib-extra.c
|
||||
src/ncurses/manager.c
|
||||
src/ncurses/windows/call_flow_win.c
|
||||
src/ncurses/windows/call_list_win.c
|
||||
|
@ -56,19 +58,17 @@ set(SOURCES
|
|||
src/ncurses/dialog.c
|
||||
src/ncurses/keybinding.c
|
||||
src/ncurses/scrollbar.c
|
||||
src/glib/gasyncqueuesource.c
|
||||
src/filter.c
|
||||
src/group.c
|
||||
src/main.c
|
||||
src/stream.c
|
||||
src/storage/filter.c
|
||||
src/storage/group.c
|
||||
src/storage/stream.c
|
||||
src/storage/attribute.c
|
||||
src/storage/storage.c
|
||||
src/storage/call.c
|
||||
src/storage/message.c
|
||||
src/storage/timeval.c
|
||||
src/setting.c
|
||||
src/attribute.c
|
||||
src/storage.c
|
||||
src/call.c
|
||||
src/message.c
|
||||
src/timeval.c
|
||||
src/glib/glib-extra.c
|
||||
)
|
||||
src/main.c
|
||||
)
|
||||
|
||||
######################################################################
|
||||
# HEP Support
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <glib.h>
|
||||
#include "glib/gasyncqueuesource.h"
|
||||
#include "setting.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "capture.h"
|
||||
|
||||
static CaptureManager *manager = NULL;
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <glib-unix.h>
|
||||
#include "timeval.h"
|
||||
#include "storage/timeval.h"
|
||||
#include "setting.h"
|
||||
#include "glib/glib-extra.h"
|
||||
#include "capture/dissectors/packet_hep.h"
|
||||
|
|
|
@ -41,10 +41,10 @@
|
|||
#include "capture_hep.h"
|
||||
#include "capture_pcap.h"
|
||||
#include "capture/dissectors/packet_link.h"
|
||||
#include "storage.h"
|
||||
#include "stream.h"
|
||||
#include "storage/storage.h"
|
||||
#include "storage/stream.h"
|
||||
#include "setting.h"
|
||||
#include "timeval.h"
|
||||
#include "storage/timeval.h"
|
||||
|
||||
GQuark
|
||||
capture_pcap_error_quark()
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <glib.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "timeval.h"
|
||||
#include "storage/timeval.h"
|
||||
#include "packet.h"
|
||||
#include "capture/dissectors/packet_sip.h"
|
||||
#include "capture/capture_txt.h"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "capture/parser.h"
|
||||
#include "capture/packet.h"
|
||||
#include "packet_ip.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "capture/parser.h"
|
||||
#include "capture/packet.h"
|
||||
#include "packet_ip.h"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "config.h"
|
||||
#include <stdlib.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "capture/packet.h"
|
||||
#include "packet_tcp.h"
|
||||
#include "packet_sdp.h"
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
#include "ncurses/window.h"
|
||||
#include "ncurses/theme.h"
|
||||
#include "ncurses/keybinding.h"
|
||||
#include "storage.h"
|
||||
#include "group.h"
|
||||
#include "storage/storage.h"
|
||||
#include "storage/group.h"
|
||||
#include "setting.h"
|
||||
|
||||
//! Refresh UI every 200 ms
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <form.h>
|
||||
#include "group.h"
|
||||
#include "storage/group.h"
|
||||
#include "ncurses/manager.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
#include <glib.h>
|
||||
#include "ncurses/manager.h"
|
||||
#include "ncurses/scrollbar.h"
|
||||
#include "group.h"
|
||||
#include "storage/group.h"
|
||||
|
||||
//! Configurable some day
|
||||
#define CF_COLUMN_WIDTH 30
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <stdio.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "setting.h"
|
||||
#include "filter.h"
|
||||
#include "storage/filter.h"
|
||||
#ifdef USE_HEP
|
||||
#include "capture/capture_hep.h"
|
||||
#endif
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
#define __SNGREP_CALL_RAW_WIN_H
|
||||
|
||||
#include "config.h"
|
||||
#include "group.h"
|
||||
#include "message.h"
|
||||
#include "storage/group.h"
|
||||
#include "storage/message.h"
|
||||
#include "ncurses/manager.h"
|
||||
|
||||
//! Sorter declaration of struct call_raw_info
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <form.h>
|
||||
#include "ncurses/manager.h"
|
||||
#include "ncurses/scrollbar.h"
|
||||
#include "attribute.h"
|
||||
#include "storage/attribute.h"
|
||||
|
||||
/**
|
||||
* @brief Enum of available fields
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
#include "ncurses/manager.h"
|
||||
#include "filter_win.h"
|
||||
#include "call_list_win.h"
|
||||
#include "storage.h"
|
||||
#include "filter.h"
|
||||
#include "storage/storage.h"
|
||||
#include "storage/filter.h"
|
||||
#include "setting.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <glib.h>
|
||||
#include <pulse/pulseaudio.h>
|
||||
#include "ncurses/manager.h"
|
||||
#include "stream.h"
|
||||
#include "storage/stream.h"
|
||||
|
||||
typedef struct _RtpPlayerInfo RtpPlayerInfo;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#include "capture/codecs/codec_g711a.h"
|
||||
#include "glib/glib-extra.h"
|
||||
#include "setting.h"
|
||||
#include "filter.h"
|
||||
#include "storage/filter.h"
|
||||
#include "capture/capture_txt.h"
|
||||
#include "ncurses/dialog.h"
|
||||
#include "ncurses/windows/save_win.h"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <form.h>
|
||||
#include "group.h"
|
||||
#include "storage/group.h"
|
||||
#include "ncurses/manager.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "capture/dissectors/packet_sip.h"
|
||||
#include "stats_win.h"
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "ncurses/keybinding.h"
|
||||
#include "glib/glib-extra.h"
|
||||
#include "setting.h"
|
||||
#include "timeval.h"
|
||||
#include "storage/timeval.h"
|
||||
|
||||
/**
|
||||
* @brief Storage settings
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#define __SNGREP_SETTING_H
|
||||
|
||||
#include <glib.h>
|
||||
#include "attribute.h"
|
||||
#include "storage/attribute.h"
|
||||
|
||||
//! Max setting value
|
||||
#define SETTING_MAX_LEN 1024
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "glib/glib-extra.h"
|
||||
#include "call.h"
|
||||
#include "capture/dissectors/packet_sip.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "setting.h"
|
||||
|
||||
Call *
|
|
@ -32,7 +32,7 @@
|
|||
#include <glib.h>
|
||||
#include "stream.h"
|
||||
#include "message.h"
|
||||
#include "attribute.h"
|
||||
#include "storage/attribute.h"
|
||||
|
||||
//! Shorter declaration of sip_call structure
|
||||
typedef struct _Call Call;
|
|
@ -30,7 +30,7 @@
|
|||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
#include "ncurses/windows/call_list_win.h"
|
||||
#include "filter.h"
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
#define __SNGREP_FILTER_H
|
||||
|
||||
#include <glib.h>
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
|
||||
//! Shorter declaration of sip_call_group structure
|
||||
typedef struct _Filter Filter;
|
|
@ -34,7 +34,7 @@
|
|||
#define __SNGREP_GROUP_H_
|
||||
|
||||
#include <glib.h>
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
|
||||
//! Shorter declaration of sip_call_group structure
|
||||
typedef struct _SipCallGroup CallGroup;
|
|
@ -34,7 +34,7 @@
|
|||
#include "message.h"
|
||||
#include "capture/dissectors/packet_sip.h"
|
||||
#include "capture/dissectors/packet_sdp.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
|
||||
Message *
|
||||
msg_new(Packet *packet)
|
|
@ -32,7 +32,7 @@
|
|||
#include <glib.h>
|
||||
#include "capture/dissectors/packet_sdp.h"
|
||||
#include "capture/packet.h"
|
||||
#include "attribute.h"
|
||||
#include "storage/attribute.h"
|
||||
#include "timeval.h"
|
||||
|
||||
//! Get IP Address info from message's packet
|
|
@ -33,7 +33,7 @@
|
|||
#include <glib/gprintf.h>
|
||||
#include "glib/glib-extra.h"
|
||||
#include "stream.h"
|
||||
#include "storage.h"
|
||||
#include "storage/storage.h"
|
||||
|
||||
Stream *
|
||||
stream_new(enum StreamType type, Message *msg, PacketSdpMedia *media)
|
|
@ -30,7 +30,7 @@
|
|||
#define __SNGREP_STREAM_H
|
||||
|
||||
#include "config.h"
|
||||
#include "message.h"
|
||||
#include "storage/message.h"
|
||||
#include "capture/capture_pcap.h"
|
||||
#include "capture/dissectors/packet_sdp.h"
|
||||
#include "capture/dissectors/packet_rtp.h"
|
Loading…
Reference in New Issue