xmppc  0.0.1
XMPP Command Line Client
Classes | Functions
main.c File Reference
#include "config.h"
#include <assert.h>
#include <getopt.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <strophe.h>
#include <errno.h>
#include <termios.h>
#include <unistd.h>
#include "xmppc.h"
#include "mode/account.h"
#include "mode/message.h"
#include "mode/muc.h"
#include "mode/omemo.h"
#include "mode/roster.h"
#include "mode/pgp.h"
#include "mode/openpgp.h"
#include "mode/monitor.h"
#include "mode/mam.h"
#include "mode/discovery.h"
#include "mode/bookmark.h"
Include dependency graph for main.c:

Classes

struct  callback_t
 The callback structure. More...
 
struct  mode_mapping
 Mode Mapping. More...
 

Functions

void conn_handler (xmpp_conn_t *const conn, const xmpp_conn_event_t status, const int error, xmpp_stream_error_t *const stream_error, void *const userdata)
 Connection Handler Callback of libstrophe. More...
 
int main (int argc, char *argv[])
 C-Main function. More...
 

Detailed Description

vim: expandtab:ts=2:sts=2:sw=2

Authors
Copyright (C) 2020 Anoxinon e.V.

xmppc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

xmppc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Foobar. If not, see http://www.gnu.org/licenses/.

German

Diese Datei ist Teil von xmppc.

xmppc ist Freie Software: Sie können es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation, Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren veröffentlichten Version, weiter verteilen und/oder modifizieren.

xmppc wird in der Hoffnung, dass es nützlich sein wird, aber OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die GNU General Public License für weitere Details.

Sie sollten eine Kopie der GNU General Public License zusammen mit diesem Programm erhalten haben. Wenn nicht, siehe https://www.gnu.org/licenses/.

Function Documentation

◆ conn_handler()

void conn_handler ( xmpp_conn_t *const  conn,
const xmpp_conn_event_t  status,
const int  error,
xmpp_stream_error_t *const  stream_error,
void *const  userdata 
)

Connection Handler Callback of libstrophe.

This function will be called by libstrophe.

Parameters
connSee libstrophe documentation
statusSee libstrophe documentation
errorSee libstrophe documentation
stream_errorSee libstrophe documentation
userdatacallback_t object for the mode request by user.
Authors
DebxWoody
Since
0.0.2
Version
1

◆ main()

int main ( int  argc,
char *  argv[] 
)

C-Main function.

  • Parse argv arguments of the command line.
  • Checks jid and password for xmpp logging
  • Checks mode requested by user
  • All other arguments will be used as mode parameters
Parameters
argcArguments counter
argvArguments vector
Returns
Exit Code
Authors
DebxWoody
Since
0.0.2
Version
2