repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
LTD-Beget/nsd | tpkg/cutest/qtest.c | /*
qtest : test query answers
*/
#include "config.h"
#include <errno.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include "tpkg/cutest/qtest.h"
#include "query.h"
#include "namedb.h"
#include "util.h"
#include "nsec3.h"
#include "options.h"
#include "packet.h"
#include "dname.h"
#include ... |
LTD-Beget/nsd | tpkg/cutest/cutest_radtree.c | <reponame>LTD-Beget/nsd
/*
* test radtree -- generic radix tree for binary strings.
*
* Copyright (c) 2010, NLnet Labs. See LICENSE for license.
*/
#include "config.h"
#include "tpkg/cutest/cutest.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include "radtree.h"
#include "region... |
Theoriz/AugmentaUnreal | Source/AugmentaUnreal/Public/AugmentaReceiver.h | <gh_stars>1-10
#pragma once
#include "CoreMinimal.h"
#include "OSCMessage.h"
#include "AugmentaData.h"
#include "AugmentaReceiver.generated.h"
/** Forward Declarations */
class UOSCServer;
/** Delegates */
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FSceneUpdatedEvent, const FAugmentaScene, Scene);
DECLARE_DYNAMIC_M... |
Theoriz/AugmentaUnreal | Source/AugmentaUnreal/Public/AugmentaData.h | <gh_stars>1-10
#pragma once
#include "AugmentaData.generated.h"
/**
* A structure to hold the data for the Augmenta Object.
*/
USTRUCT(BlueprintType, Category = "Augmenta|Data")
struct FAugmentaPerson
{
GENERATED_BODY()
/** The scene frame number. */
UPROPERTY(BlueprintReadOnly, Category = "Augmenta|Object")
... |
pkishi/picoPNG | picopng.h | <reponame>pkishi/picoPNG
#ifndef PICOPNG_H
#define PICOPNG_H
#include <vector>
#include <string>
int decodePNG(std::vector<unsigned char>& out_image, unsigned long& image_width, unsigned long& image_height, const unsigned char* in_png, size_t in_size, bool convert_to_rgba32 = true);
void loadFile(std::vector<unsigne... |
jrohel/libsolv | src/repopack.h | <filename>src/repopack.h
/*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/* pack/unpack functions for key data */
#ifndef LIBSOLV_REPOPACK_H
#define LIBSOLV_REPOPACK_H
static inline unsigned char *
data_read_id(unsigned char ... |
jrohel/libsolv | src/repo.c | <gh_stars>0
/*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* repo.c
*
* Manage metadata coming from one repository
*
*/
#define _GNU_SOURCE
#include <string.h>
#include <fnmatch.h>
#include <stdio.h>
#include <stdlib... |
jrohel/libsolv | tools/archrepo2solv.c | <gh_stars>0
/*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* archrepo2solv.c
*
* parse archlinux repo file
*
* reads from stdin
* writes to stdout
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#in... |
jrohel/libsolv | tools/deb2solv.c | /*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* deb2solv - create a solv file from one or multiple debs
*
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#incl... |
jrohel/libsolv | src/diskusage.c | /*
* Copyright (c) 2007-2016, SUSE LLC
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* diskusage.c
*
* calculate needed space on partitions
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include "p... |
jrohel/libsolv | ext/pool_parserpmrichdep.c | <reponame>jrohel/libsolv<filename>ext/pool_parserpmrichdep.c
/*
* Copyright (c) 2015, SUSE Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/* this is used by repo_rpmmd, repo_rpmdb, and repo_susetags */
#include <stdio.h>
#include "pool.h"
#include "pool_pa... |
jrohel/libsolv | src/pool.c | /*
* Copyright (c) 2007-2009, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* pool.c
*
* The pool contains information about solvables
* stored optimized for memory consumption and fast retrieval.
*/
#include <stdio.h>
#include <stdlib.h>
#i... |
jrohel/libsolv | src/fileprovides.c | /*
* Copyright (c) 2007-2016, SUSE LLC
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* fileprovides.c
*
* Add missing file dependencies to the package provides
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <s... |
jrohel/libsolv | examples/solv/repoinfo_type_mdk.c | <gh_stars>0
#ifdef ENABLE_MDKREPO
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "pool.h"
#include "repo.h"
#include "chksum.h"
#include "repo_mdk.h"
#include "solv_xfopen.h"
#include "repoinfo.h"
#include "repoinfo_cache.h"
#include "repoinfo_download.h"
#include "repoinfo_type_mdk.h"
static i... |
jrohel/libsolv | tools/common_write.c | /*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pool.h"
#include "repo.h"
#include "repo_write.h"
#include "common_write.h"
#include "... |
jrohel/libsolv | tools/appdata2solv.c | /*
* Copyright (c) 2013, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* appdata2solv.c
*
* parse AppStream appdata type xml and write out .solv file
*
* reads from stdin
* writes to stdout
*/
#include <sys/types.h>
#include <stdio.h>
#in... |
jrohel/libsolv | src/cplxdeps.c | /*
* Copyright (c) 2014, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* cplxdeps.c
*
* normalize complex dependencies into CNF/DNF form
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#i... |
jrohel/libsolv | tools/mdk2solv.c | /*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* mdk2solv.c
*
* parse Mandriva/Mageie synthesis file
*
* reads from stdin
* writes to stdout
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include ... |
jrohel/libsolv | examples/solv/repoinfo_type_rpmmd.c | <filename>examples/solv/repoinfo_type_rpmmd.c
#ifdef ENABLE_RPMMD
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "pool.h"
#include "repo.h"
#include "chksum.h"
#include "repo_rpmmd.h"
#include "repo_deltainfoxml.h"
#include "repo_updateinfoxml.h"
#include "repo_repomdxml.h"
#ifdef ENABLE_APPDATA
... |
jrohel/libsolv | examples/solv/fileconflicts.c | <reponame>jrohel/libsolv<gh_stars>0
#if defined(ENABLE_RPMDB) && (defined(SUSE) || defined(FEDORA) || defined(MANDRIVA) || defined(MAGEIA))
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "pool.h"
#include "repo.h"
#include "repo_rpmdb.h"
#include "pool_fileconflicts.h"
#include "fileconflicts.h"... |
jrohel/libsolv | tools/helix2solv.c | <gh_stars>0
/*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* helix2solv.c
*
* parse 'helix' type xml and write out .solv file
*
* reads from stdin
* writes to stdout
*/
#include <sys/types.h>
#include <stdio.h>
#in... |
jrohel/libsolv | src/selection.h | <filename>src/selection.h
/*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* selection.h
*
*/
#ifndef LIBSOLV_SELECTION_H
#define LIBSOLV_SELECTION_H
#include "pool.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SEL... |
jrohel/libsolv | tools/rpmmd2solv.c | /*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#define _GNU_SOURCE
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "pool.h"
#include "repo.h"
#include "repo_rpmm... |
jrohel/libsolv | ext/testcase.h | /*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#include "pool.h"
#include "repo.h"
#include "solver.h"
#define TESTCASE_RESULT_TRANSACTION (1 << 0)
#define TESTCASE_RESULT_PROBLEMS (1 << 1)
#define TESTCASE_RESULT_ORPHANED (1... |
jrohel/libsolv | src/selection.c | /*
* Copyright (c) 2012, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* selection.c
*
*/
#define _GNU_SOURCE
#include <string.h>
#include <fnmatch.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "selection.h"
#include... |
jrohel/libsolv | tools/susetags2solv.c | /*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#define _GNU_SOURCE
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <unistd.h>
#include "pool.h"
#include "repo.h"... |
jrohel/libsolv | src/problems.c | <reponame>jrohel/libsolv<filename>src/problems.c<gh_stars>0
/*
* Copyright (c) 2007-2009, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* problems.c
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <... |
jrohel/libsolv | tools/rpmdb2solv.c | /*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* rpmdb2solv
*
* Reads rpm database (and evtl. more, like product metadata) to build
* a .solv file of 'installed' solvables.
* Writes .solv to stdout
*
*/
#include <... |
jrohel/libsolv | examples/solv/repoinfo_download.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "pool.h"
#include "repo.h"
#include "chksum.h"
#include "solv_xfopen.h"
#include "repoinfo.h"
#include "mirror.h"
#include "checksig.h"
#include "repoinfo_download.h"
static inline int
... |
jrohel/libsolv | examples/solv/repoinfo_config_yum.c | #if defined(SUSE) || defined(FEDORA)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/utsname.h>
#include "pool.h"
#include "repo.h"
#include "repo_rpmdb.h"
#include "repoinfo.h"
#include "repoinfo_config_yum.h"
#ifdef FEDORA
# define REPOINFO_PATH "/etc/yum.repos.d"
#en... |
jrohel/libsolv | examples/solv/repoinfo_system_rpm.c | #if defined(ENABLE_RPMDB) && (defined(SUSE) || defined(FEDORA) || defined(MANDRIVA) || defined(MAGEIA))
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include "pool.h"
#include "repo.h"
#include "repo_rpmdb.h"
#if defin... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNSubscribe.h | <gh_stars>1-10
/***************************************************************************************
*
* MQTTSNSubscribe.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
***********************************************************************************... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNClient.h | <reponame>ty4tw/MQTT-SN-LoRa
/***************************************************************************************
*
* MQTTSNClient.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
************************************************************************... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNTopic.c | <filename>MQTTSN/MQTTSNTopic.c
/**************************************************************************************
*
* MQTTSNTopic.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
************************************************************************... |
ty4tw/MQTT-SN-LoRa | AppSrc/commission.h | /**************************************************************************************
*
* commission.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef COMMIS... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLinkCrypto.h | /*
* LoRaLinkCrypt.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef LORALINKCRYPTO_H_
#define LORALINKCRYPTO_H_
#include <stdint.h>
#define KEY_SIZE 16... |
ty4tw/MQTT-SN-LoRa | LoRaEz/i2c.c | /*!
* \file i2c.c
*
* \brief I2C driver implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ _____ ____|... |
ty4tw/MQTT-SN-LoRa | LoRaEz/device.h | /*!
* \file device.h
*
* \brief LoRaDevice general functions implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ __... |
ty4tw/MQTT-SN-LoRa | System/Payload.c | <reponame>ty4tw/MQTT-SN-LoRa
/*!
* \file Payload.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include "Payload.h"
#include <stdio.h>
#include <string.h>
#inclu... |
ty4tw/MQTT-SN-LoRa | System/TaskMgmt.h | /*!
* \file TaskMgr.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef LORA_APPCONTROL_H_
#define LORA_APPCONTROL_H_
#include "Payload.h"
#include "gpio.h"
... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNPublish.h | <reponame>ty4tw/MQTT-SN-LoRa
/***************************************************************************************
*
* MQTTSNRegister.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**********************************************************************... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLink.c | /**************************************************************************************
*
* LoRaLink.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include <stdboo... |
ty4tw/MQTT-SN-LoRa | LoRaEz/nvmm.c | /*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
___ _____ _ ___ _ _____ ___ ___ ___ ___
/ __|_ _/_\ / __| |/ / ... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLinkCrypto.c | /***************************************************************************************
*
* LoRaLinkCrypto.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include "L... |
ty4tw/MQTT-SN-LoRa | System/Peripheral.h | /*!
* \file Peripheral.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef _PERIPHERAL_H_
#define _PERIPHERAL_H_
#include <stdio.h>
#include <string.h>
#inclu... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLinkApi.h | <gh_stars>1-10
/**************************************************************************************
*
* LoRaLinkApi.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
... |
ty4tw/MQTT-SN-LoRa | System/TaskMgmt.c | <filename>System/TaskMgmt.c<gh_stars>1-10
/*!
* \file TaskMgr.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "Task... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLinkApi.c | <reponame>ty4tw/MQTT-SN-LoRa<filename>LoRaLink/LoRaLinkApi.c
/**************************************************************************************
*
* LoRaLinkApi.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
*****************************************... |
ty4tw/MQTT-SN-LoRa | System/Peripheral.c | /*!
* \file Peripheral.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include <stdio.h>
#include <string.h>
#include "Peripheral.h"
#include "utilities.h"
#incl... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNRegister.h | /***************************************************************************************
*
* MQTTSNRegister.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef MQT... |
ty4tw/MQTT-SN-LoRa | System/LoRaEz.h | <filename>System/LoRaEz.h
/**************************************************************************************
*
* LoRaEz.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
*********************************************************************************... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNDefines.h | <reponame>ty4tw/MQTT-SN-LoRa<gh_stars>1-10
/*
* MQTTSNDefines.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef MQTTSNDEFINES_H_
#define MQTTSNDEFINES_H_
#inclu... |
ty4tw/MQTT-SN-LoRa | System/utilities.c | /*!
* \file utilities.h
*
* \brief Helper functions implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ ... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNTopic.h | <gh_stars>1-10
/***************************************************************************************
*
* MQTTSNTopic.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNPublish.c | <gh_stars>1-10
/***************************************************************************************
*
* MQTTSNPublish.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
*************************************************************************************... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNClient.c | /**************************************************************************************
*
* MQTTSNClient.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include "MQTT... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLinkTypes.h | /**************************************************************************************
*
* LoRaLinkTypes.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef LOR... |
ty4tw/MQTT-SN-LoRa | AppSrc/SetupDevices.c | /*
* SetupDevices.c
*
* Created on: 2020/07/07
* Author: tomoaki
*/
#include "commission.h"
#include "LoRaEz.h"
#define DEV_ADDR 0x04
#if defined( CLIENT )
MQTTSNConf_t conf =
{
"LoRaCl", //Prefix of ClientId (max 8digits) ClientId: prefix + DevAddr (2digits)
180, //KeepAlive (seconds)
false, ... |
ty4tw/MQTT-SN-LoRa | LoRaLink/LoRaLink.h | <filename>LoRaLink/LoRaLink.h<gh_stars>1-10
/**************************************************************************************
*
* LoRaLink.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************... |
ty4tw/MQTT-SN-LoRa | System/Payload.h | <reponame>ty4tw/MQTT-SN-LoRa
/*!
* \file Payload.h
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#ifndef APPCTRL_PAYLOAD_H_
#define APPCTRL_PAYLOAD_H_
#include <... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNSubscribe.c | /**************************************************************************************
*
* MQTTSNSubscribe.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
**************************************************************************************/
#include "M... |
ty4tw/MQTT-SN-LoRa | MQTTSN/MQTTSNRegister.c | <filename>MQTTSN/MQTTSNRegister.c
/**************************************************************************************
*
* MQTTSNRegister.c
*
* copyright Revised BSD License, see section \ref LICENSE
*
* copyright (c) 2020, <NAME> <EMAIL>
*
******************************************************************... |
GreenPowerInc/aiblock-mbed | targets/TARGET_AIBLOCK_F7V1/PinNames.h | #ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H
#include "cmsis.h"
#include "PinNamesTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum
{
ALT0 = 0x100,
ALT1 = 0x200,
ALT2 = 0x300,
ALT3 = 0x400
} ALTx;
typedef enum
{
PA_0 = 0x00,
PA_0_ALT0 = PA_0 | ALT0,
P... |
GreenPowerInc/aiblock-mbed | targets/TARGET_AIBLOCK_F7V1/system_clock.c | // BSD 2-Clause License
//
// Copyright (c) 2020, GreenPower 貝里斯商環能綠力生技
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above co... |
GreenPowerInc/aiblock-mbed | targets/TARGET_AIBLOCK_F7V1/PeripheralNames.h | #ifndef MBED_PERIPHERALNAMES_H
#define MBED_PERIPHERALNAMES_H
#include "cmsis.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
ADC_1 = (int)ADC1_BASE,
ADC_2 = (int)ADC2_BASE,
ADC_3 = (int)ADC3_BASE
} ADCName;
typedef enum {
DAC_1 = DAC_BASE
} DACName;
typedef enum {
... |
kieranroneill/KRPulsingOverlayView | example/KRPulsingOverlayViewDemo/KRPulsingOverlayViewDemo/AppDelegate.h | //
// AppDelegate.h
// KRPulsingOverlayViewDemo
//
// Created by <NAME> on 07/01/2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
kieranroneill/KRPulsingOverlayView | example/KRPulsingOverlayViewDemo/KRPulsingOverlayViewDemo/KRPulsingOverlayViewController.h | <reponame>kieranroneill/KRPulsingOverlayView<filename>example/KRPulsingOverlayViewDemo/KRPulsingOverlayViewDemo/KRPulsingOverlayViewController.h
//
// KRPulsingOverlayViewController.h
// KRPulsingOverlayViewDemo
//
// Created by <NAME> on 07/01/2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <U... |
kieranroneill/KRPulsingOverlayView | example/KRPulsingOverlayViewDemo/KRPulsingOverlayViewDemo/KRPulsingOverlayView/KRPulsingOverlayView.h | <reponame>kieranroneill/KRPulsingOverlayView
//
// KRPulsingOverlayView.h
//
// Copyright (c) 2014 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including ... |
yangweicong/YWCPlaceholderTextView | YWCPlaceholderTextView/YWCPlaceholderTextView.h | //
// PlaceholderTextView.h
// GuangWu
//
// Created by Eric on 15/10/16.
// Copyright © 2015年 YangWeiCong. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, PlaceholderTextAlignment) {
PlaceholderTextAlignmentLeft,
PlaceholderTextAlignmentCenter,
PlaceholderTextAlignment... |
vishalbelsare/Adept-2 | include/adept/interp.h | /* interp.h -- 1D interpolation
Copyright (C) 2015-2021 European Centre for Medium-Range Weather Forecasts
Author: <NAME> <<EMAIL>>
This file is part of the Adept library.
*/
#ifndef AdeptInterp_H
#define AdeptInterp_H
#include <adept/Array.h>
namespace adept {
enum ExtrapolatePolicy {
ADEPT_... |
vishalbelsare/Adept-2 | include/adept/spread.h | <gh_stars>100-1000
/* spread.h -- Spread an array into an additional dimension
Copyright (C) 2017 European Centre for Medium-Range Weather Forecasts
Author: <NAME> <<EMAIL>>
This file is part of the Adept library.
*/
#ifndef AdeptSpread_H
#define AdeptSpread_H
#include <adept/Array.h... |
Shirakumo/libfond | src/fond.h | #ifndef __LIBFOND_H__
#define __LIBFOND_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
# ifdef FOND_STATIC_DEFINE
# define FOND_EXPORT
# else
# ifndef FOND_EXPORT
# define FOND_EXPORT __declspec(dllexport)
# endif
# endif
#else
# define FOND_EXPORT
#endif
#include <stdint.h>
#include ... |
Shirakumo/libfond | src/fond_windows.c | <reponame>Shirakumo/libfond
#include "fond_internal.h"
#ifdef FOND_WIN
PFNGLTEXSTORAGE2DPROC glTexStorage2D = 0;
PFNGLGENERATEMIPMAPPROC glGenerateMipmap = 0;
PFNGLGENVERTEXARRAYSPROC glGenVertexArrays = 0;
PFNGLGENBUFFERSPROC glGenBuffers = 0;
PFNGLBINDVERTEXARRAYPROC glBindVertexArray = 0;
PFNGLBINDBUFFERPROC glBind... |
Shirakumo/libfond | src/utf8.h | // This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions ... |
Shirakumo/libfond | test/test.c | #define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#include "../src/fond.h"
const GLchar *vertex_shader = "#version 330 core\n"
"layout (location = 0) in vec3 position;\n"
"layout (location = 1) in vec2 in_texcoord;\n"
"out vec2 texcoord;\n"
"\n"
"void main(){\n"
" gl_Posi... |
Shirakumo/libfond | src/fond_internal.h | #include "fond.h"
#include <stdio.h>
#if defined(WIN32) || defined(_WIN32)
# define FOND_WIN
# include <GL/gl.h>
# include <GL/glext.h>
# include "fond_windows.h"
#endif
#if defined(__APPLE__)
# define FOND_MAC
# define GL_GLEXT_PROTOTYPES
# include <OpenGL/gl3.h>
# include <OpenGL/gl3ext.h>
#endif
#if defined(... |
Shirakumo/libfond | src/fond_buffer.c | #include <stdio.h>
#include "fond_internal.h"
#include "shader/to_texture.vert.h"
#include "shader/to_texture.frag.h"
const GLchar *to_texture_vert_src = to_texture_vert;
const GLchar *to_texture_frag_src = to_texture_frag;
FOND_EXPORT void fond_free_buffer(struct fond_buffer *buffer){
if(buffer->texture)
glDel... |
Shirakumo/libfond | src/fond_common.c | #include "fond_internal.h"
#include "utf8.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
int errorcode = 0;
FOND_EXPORT int fond_decode_utf8(void *string, int32_t **_decoded, size_t *_size){
if(utf8valid(string)){
fond_err(FOND_UTF8_CONVERSION_ERROR);
... |
Shirakumo/libfond | src/fond.c | <filename>src/fond.c
#define STB_TRUETYPE_IMPLEMENTATION
#define STB_RECT_PACK_IMPLEMENTATION
#define STBTT_STATIC
#define STBRP_STATIC
#define LINEFEED 0x000A
#include <stdio.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include "fond_internal.h"
#include "stb_rect_pack.h"
#include "stb_truetype.h"
F... |
Shirakumo/libfond | src/fond_windows.h | #ifdef FOND_WIN
#pragma comment(lib,"opengl32.lib")
#include <GL/wglext.h>
extern PFNGLTEXSTORAGE2DPROC glTexStorage2D;
extern PFNGLGENERATEMIPMAPPROC glGenerateMipmap;
extern PFNGLGENVERTEXARRAYSPROC glGenVertexArrays;
extern PFNGLGENBUFFERSPROC glGenBuffers;
extern PFNGLBINDVERTEXARRAYPROC glBindVertexArray;
extern ... |
bizunionchain/pango | src/crypto/groestl.h | // Copyright (c) 2014-2017, The BUC Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
/... |
katono/cpputest | include/CppUTestExt/MockSupport_c.h | <filename>include/CppUTestExt/MockSupport_c.h<gh_stars>1-10
/*
* Copyright (c) 2007, <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... |
katono/cpputest | include/CppUTestExt/MockCheckedExpectedCall.h | <gh_stars>1-10
/*
* Copyright (c) 2007, <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* ... |
katono/cpputest | include/CppUTestExt/MockNamedValue.h | <reponame>katono/cpputest
/*
* Copyright (c) 2007, <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copy... |
GarryLau/DesignPatterns | AbstractFactoryPattern/factory.h | #pragma once
#include "product.h"
class factory
{
public:
factory();
~factory();
virtual productA *CreateProductA() = 0;
virtual productB *CreateProductB() = 0;
};
class factoryI : public factory
{
public:
factoryI();
~factoryI();
virtual productA *CreateProductA() override;
virtual prod... |
GarryLau/DesignPatterns | Facade/AirCondition.h | <gh_stars>0
#ifndef _AIR_CONDITION_H_
#define _AIR_CONDITION_H_
#include <iostream>
#ifdef __cplusplus
extern "C"{
#endif
class AirCondition
{
public:
void airConditionOn() {
std::cout << "Air Condition is on." << std::endl;
}
void airConditionOff() {
std::cout << "Air Condition is off." << st... |
GarryLau/DesignPatterns | Command/Command.h | #ifndef _COMMAND_H_
#define _COMMAND_H_
#include <iostream>
#include "Light.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Command Interface */
class ICommand
{
public:
virtual void excute() = 0;
~ICommand(){}
};
/* Command for turning on the light */
cla... |
GarryLau/DesignPatterns | Strategy/SearchBehavior .h | #pragma once
#include <iostream>
class SearchBehavior
{
public:
~SearchBehavior() = default;
virtual void search() = 0;
};
class SequentialSearch : public SearchBehavior
{
public:
virtual void search() override {
std::cout << "Using SequentialSearch." << std::endl;
}
};
cl... |
GarryLau/DesignPatterns | AbstractFactory/ScrollStyleB.h | #ifndef _SCROLL_STYLEB_H_
#define _SCROLL_STYLEB_H_
#include "ScrollBar.h"
#include <iostream>
#ifdef __cplusplus
extern "C" {
#endif
class ScrollStyleB : public ScrollBar
{
public:
ScrollStyleB(std::string color);
~ScrollStyleB() = default;
ScrollStyleB * addScrollBar();
private:
... |
GarryLau/DesignPatterns | State/StateA.h | #pragma once
#include "State.h"
class StateA : public State
{
public:
/* StateA模式下Context做Action1_S是有意义的,因此无需实现Action2_S、Action3_S方法 */
virtual void Action1_S(Context *context) override;
/* 具体状态以单例模式实现 */
static State * getInstance() {
if (nullptr == m_state) {
m_state = new StateA;
}
retur... |
GarryLau/DesignPatterns | FactoryMethod/Document.h | #pragma once
#include <string>
#include <iostream>
class Document
{
public:
Document(std::string name) : m_name(name){
std::cout << "Document constructor called." << std::endl;
}
~Document() = default;
virtual void Open() = 0;
virtual void Close() = 0;
std::string &GetNam... |
GarryLau/DesignPatterns | Decorator/Window.h | #ifndef _WINDOW_H_
#define _WINDOW_H_
#include <iostream>
#include <string>
#ifdef __cplusplus
extern "C" {
#endif
class Window
{
public:
virtual void draw() = 0;
virtual void getDescription() = 0;
virtual ~Window(){}
};
class SimpleWindow : public Win... |
GarryLau/DesignPatterns | Adapter-association/Adapter.h | <gh_stars>0
#pragma once
#include "Rect.h"
#include "LegacyRect.h"
/* Adapter class */
class Adapter : public Rect
{
public:
Adapter(int x,int y, int w,int h){
m_legacyrect = new LegacyRect(x, y, w, h);
std::cout << "Adapter constructor called." << std::endl;
}
~Adapter() {
... |
GarryLau/DesignPatterns | AbstractFactory/ScrollBar.h | #ifndef _SCROLLBAR_H_
#define _SCROLLBAR_H_
#ifdef __cplusplus
extern "C"{
#endif
class ScrollBar
{
protected:
ScrollBar() = default;
~ScrollBar() = default;
public:
virtual ScrollBar * addScrollBar() = 0;
};
#ifdef __cplusplus
}
#endif
#endif |
GarryLau/DesignPatterns | ChainofResponsibility/Photo.h | #pragma once
#include <iostream>
#include <string>
class Photo
{
public:
Photo(std::string title) : m_title(title) {
std::cout << "Processing Photo: " << m_title << std::endl;
}
private:
std::string m_title;
}; |
GarryLau/DesignPatterns | ChainofResponsibility/PhotoProcessor.h | #pragma once
#include "Photo.h"
class PhotoProcessor
{
public:
PhotoProcessor() : m_next_processor(nullptr) {
std::cout << "PhotoProcessor constructor called." << std::endl;
}
virtual ~PhotoProcessor() = default;
void Process(Photo &photo) {
processImplementation(photo);
... |
GarryLau/DesignPatterns | Observer/Subject.h | <gh_stars>0
#ifndef _SUBJECT_H_
#define _SUBJECT_H_
#include "Observer.h"
#include <vector>
class Subject
{
public:
virtual ~Subject() = default;
/* add observer */
virtual void subscribe(Observer * observer) {
m_observer.push_back(observer);
}
/* remove observer */
virtual void unsub... |
GarryLau/DesignPatterns | Mediator/Colleague.h | #pragma once
#include <string>
#include <iostream>
#ifdef __cplusplus
extern "C" {
#endif
class IMediator;
class IColleague
{
public:
IColleague(std::string name, std::string message) : m_name(name), m_message(message) {}
~IColleague() {}
virtual void sendMessage(IMediator * mediator) ... |
GarryLau/DesignPatterns | AbstractFactory/FactoryB.h | #ifndef _FACTORY_B_H_
#define _FACTORY_B_H_
#include "WidgetFactory.h"
#ifdef __cplusplus
extern "C" {
#endif
class FactoryB : public WidgetFactory
{
public:
FactoryB() = default;
~FactoryB() = default;
virtual Window * createWindow() override;
virtual ScrollBar * createScrollBar() ove... |
GarryLau/DesignPatterns | Flyweight/FlyweightFactory.h | #ifndef _FLYWEIGHT_FACTORY_H_
#define _FLYWEIGHT_FACTORY_H_
#include <map>
#include <string>
#include "Model.h"
#ifdef __cplusplus
extern "C" {
#endif
class FlyweightFactory
{
public:
static Model *getModel(int type) {
switch (type+1)
{
case 1:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.