about summary refs log blame commit diff stats
path: root/tools/create_container
blob: 0ab9195e5cdf9fb0a3b29cca64ba9b00cc662aaf (plain) (tree)



















                                                                  
#!/bin/sh
# Start a Linux container containing the mu/ directory.
# Useful on non-Linux platforms.
# Run it from the top-level mu/ directory.

docker run -it --name mu -v `pwd`:/mu abyssos/abyss:dev

# On the first startup, you'll need to run the following commands:
#   apk add git nano libcxx-dev
#   cd /mu

# Leaving this container will stop it.
# Restart it with:
#   docker start mu
#
# Now you can connect to it anytime with:
#   docker exec -it mu sh
#   cd /mu
#
# Quite slow, though. Docker has to run a VM on other platforms.
background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#include <libotr/proto.h>
#include <libotr/message.h>
#include <glib.h>

#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>

#include "config/account.h"

#include "otr/otr.h"

OtrlUserState otr_userstate(void)
{
    return NULL;
}

OtrlMessageAppOps* otr_messageops(void)
{
    return NULL;
}

GHashTable* otr_smpinitators(void)
{
    return NULL;
}

void otr_init(void) {}
void otr_shutdown(void) {}

char* otr_libotr_version(void)
{
    return mock_ptr_type(char*);
}

char* otr_start_query(void)
{
    return mock_ptr_type(char*);
}

void otr_poll(void) {}
void otr_on_connect(ProfAccount *account) {}
char* otr_on_message_recv(const char * const barejid, const char * const resource, const char * const message, gboolean *was_decrypted)
{
    return NULL;
}
gboolean otr_on_message_send(ProfChatWin *chatwin, const char * const message, gboolean request_receipt, const char *const replace_id)
{
    return FALSE;
}

void otr_keygen(ProfAccount *account)
{
    check_expected(account);
}

gboolean otr_key_loaded(void)
{
    return mock_type(gboolean);
}

char* otr_tag_message(const char * const msg)
{
    return NULL;
}

gboolean otr_is_secure(const char * const recipient)
{
    return FALSE;
}

gboolean otr_is_trusted(const char * const recipient)
{
    return FALSE;
}

void otr_trust(const char * const recipient) {}
void otr_untrust(const char * const recipient) {}

void otr_smp_secret(const char * const recipient, const char *secret) {}
void otr_smp_question(const char * const recipient, const char *question, const char *answer) {}
void otr_smp_answer(const char * const recipient, const char *answer) {}

void otr_end_session(const char * const recipient) {}

char * otr_get_my_fingerprint(void)
{
    return mock_ptr_type(char *);
}

char * otr_get_their_fingerprint(const char * const recipient)
{
    check_expected(recipient);
    return mock_ptr_type(char *);
}

char * otr_encrypt_message(const char * const to, const char * const message)
{
    return NULL;
}

char * otr_decrypt_message(const char * const from, const char * const message,
    gboolean *was_decrypted)
{
    return NULL;
}

void otr_free_message(char *message) {}

prof_otrpolicy_t otr_get_policy(const char * const recipient)
{
    return PROF_OTRPOLICY_MANUAL;
}