repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
gerasim13/Chameleon | ChameleonDemo/ChameleonDemo/ComplementaryViewController.h | //
// ComplementaryViewController.h
// ChameleonDemo
//
// Created by <NAME> on 7/24/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Chameleon.h"
@interface ComplementaryViewController : UIViewController
@property (nonatomic, strong) NSMutableArray *flatArray;
@property... |
madfist/solitare_solver | c/card_io.h | <reponame>madfist/solitare_solver
#ifndef CARD_IO_HEADER
#define CARD_IO_HEADER
#include "card.h"
card read_card(char *);
char *write_card(card);
#endif
|
madfist/solitare_solver | c/card_io.c | <filename>c/card_io.c
#include <stdlib.h>
#include "card_io.h"
card read_card(char *card_str) {
card c = -1;
switch(card_str[0]) {
case 'S': c = 0; break;
case 'C': c = 13; break;
case 'H': c = 26; break;
case 'D': c = 39; break;
}
switch(card_str[1]) {
case 'A'... |
madfist/solitare_solver | c/main.c | <filename>c/main.c
#include <stdio.h>
#include <stdlib.h>
#include "card.h"
#include "card_io.h"
int main(int argc, char **argv) {
printf("Solitare Solver\n");
card c = read_card("D7f");
printf("C %u\n", c);
char *c_str = write_card(c);
printf("c %s\n", c_str);
free(c_str);
return 0;
}
|
madfist/solitare_solver | c/card.h | <filename>c/card.h
#ifndef CARD_HEADER
#define CARD_HEADER
typedef unsigned char card;
#endif
|
Ciantic/keymapceditor-vsc | testworkspace/keyboards/ergodox/keymaps/default/keymap.c | <gh_stars>10-100
#include "ergodox.h"
// Other stuff removed for demonstration purposes
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[BASE] = KEYMAP( // layer 0 : default
// left hand
KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT,
KC_DELT, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(SYMB),
KC... |
Ciantic/keymapceditor-vsc | testworkspace/keyboards/ergodox/keymaps/default/random.c | // Empty C file for testing purposes |
bryancatanzaro/damascene | localcues/gradient.h | #ifndef GRADIENT_H
#define GRADIENT_H
int initializeGradients(uint width, uint height, uint border, uint maxbins, uint norients, uint nscale, uint textonChoice);
float* gradients(float* devImage, uint nbins, bool blur, float sigma, uint* radii, int textonChoice);
float* gradients(int* devImage, uint nbins, bool blur,... |
bryancatanzaro/damascene | include/kmeans.h | <gh_stars>10-100
#ifndef KMEANS
#define KMEANS
#define XBLOCK 16
#define YBLOCK 16
#define LINBLOCK 512
#define IMUL(a, b) __mul24(a, b)
__global__ void findCentroids(int* responses, int nPixels, int* cluster, int* centroidMass, unsigned int* centroidCount);
__global__ void assignInitialClusters(int width, int height... |
bryancatanzaro/damascene | include/combine.h | <filename>include/combine.h
#ifndef COMBINE
#define COMBINE
/**
* This function combines Bg, Cga, Cgb and Tg to produce Mpb
* @param width the width of the image
* @param height the height of the image
* @param cuePitchInFloats the pitch of each row of Bg, Cga, etc.
* @param devBg a DEVICE pointer to the Bg infor... |
bryancatanzaro/damascene | include/convert.h | <filename>include/convert.h
#ifndef CONVERT
#define CONVERT
/**
* Loads a color image from a PPM file
* The image is stored with one 32 bit uint per pixel, where bits 0-7 encode red, 8-15 encode green, and 16-23 encode blue
* This function allocates the image on the GPU, but the caller must free the image manually.... |
bryancatanzaro/damascene | include/lanczos.h | <gh_stars>10-100
#ifndef LANCZOS
#define LANCZOS
#include "Stencil.h"
/**
* Performs the generalized eigensolve (D-W) v=\lambda D v, for a matrix
* W, where D is constructed by summing the rows of W.
* The matrix W is a sparse, multidiagonal matrix. The diagonal structure
* is encoded in the myStencil object.
* ... |
bryancatanzaro/damascene | include/spectralPb.h | #ifndef SPECTRALPB
#define SPECTRALPB
/**
* Given n eigenvectors and eigenvalues, apply 8 filters to each eigenvector, and use the corresponding eigenvalues
* as the weight of each eigenvector to sum up all the filtered eigenvector elements.
*
* The caller needs to allocate and free the memory storing the result... |
bryancatanzaro/damascene | include/Stencil.h | <filename>include/Stencil.h
#ifndef STENCIL
#define STENCIL
#include <map>
#include <assert.h>
#define CONSTSPACE 16384
#define STENCILAREAMAX CONSTSPACE
typedef unsigned int uint;
class Stencil {
public:
Stencil(int radiusIn, int widthIn, int heightIn, int matrixPitchInFloatsIn);
uint getStencilArea();
int ... |
bryancatanzaro/damascene | include/localcues.h | #ifndef LOCALCUES
#define LOCALCUES
/**
* Performs local cue extractions. Norientations is currently fixed at 8
* and the multiscale computations are done at radius 5, 10, & 20
* @param width the width of the image
* @param height the height of the image
* @param devL a DEVICE pointer to the image, in normalize... |
bryancatanzaro/damascene | include/nonmax.h | #ifndef NONMAX
#define NONMAX
/**
* Calculate the max suppression of the mpb.
* This function assumes that the p_devPB is in GPU, and the caller has already allocated memory for devNMax.
* @param p_nWidth: The width of the image.
* @param p_nHeight: The height of the image.
* @param p_devPB: The mpb_all mat... |
bryancatanzaro/damascene | include/intervening.h | <filename>include/intervening.h<gh_stars>10-100
#ifndef INTERVENING
#define INTERVENING
#include "Stencil.h"
/**
* This function computes the affinities for every pixel inside the stencil
* pattern described by theStencil. It creates the sparse matrix needed
* for the spectralPb code
* @param theStencil the sten... |
bryancatanzaro/damascene | include/texton.h | <gh_stars>10-100
#ifndef TEXTON
#define TEXTON
/**
* Finds texton labels for each pixel. This is done by convolving the image
* with a filter bank, then performing k-means on the outputs of the filter bank.
* Right now, it is hard coded with a filter bank of 34 filters
* (the 17 fundamental textons at 2 differen... |
bryancatanzaro/damascene | include/globalPb.h | #ifndef GLOBALPB
#define GLOBALPB
#include <cutil.h>
#include <cuda.h>
#define IMUL(a, b) __mul24(a, b)
/**
* Given all the local cues and the spectral pb, calculate the weighted sum among them and normalize the result.
* Assuming all the arrays are in GPU, each with size p_nMatrixPitch*p_nOrient
* @param p_nPix... |
bryancatanzaro/damascene | include/stencilMVM.h | #include <cuda.h>
#include <cutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <getopt.h>
#include <vector>
#include "Stencil.h"
#define IMUL(a, b) __mul24(a, b)
#define XBLOCK 64
#define YBLOCK 1
#define UNROLL 3
void bindTexture(float* devVector, int nPixels);
void chooseLargestGPU(bo... |
bryancatanzaro/damascene | localcues/rotate.64.h | <reponame>bryancatanzaro/damascene
#ifndef ROTATE
#define ROTATE
__global__ void turnImageP(int width, int height, int* inputImage, int* outputImage);
__global__ void turnImageN(int width, int height, int* inputImage, int* outputImage);
__global__ void transposeImage(int width, int height, int* inputImage, int inpu... |
bryancatanzaro/damascene | localcues/spec.h | <reponame>bryancatanzaro/damascene<filename>localcues/spec.h
#ifndef __SPEC_H
#define __SPEC_H
#include <sys/time.h>
#define MAX_KERNEL 32
//#define MAX_LENGTH (100)
#define MAX_LENGTH (400)
#define MAX_ORIENTATIONS 16
#define FILTER_PREFIX "newdata/savgol_"
#define MAX_FILTER_LENGTH 41
//#define MAX_FILTER_LENGTH 8... |
trskop/c-state-machine | src/state-machine.c | /* Copyright (c) 2014, <NAME> <<EMAIL>>
*
* 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
* notice, this list... |
trskop/c-state-machine | example/simple.c | /* Copyright (c) 2014, <NAME> <<EMAIL>>
*
* 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
* notice, this list... |
trskop/c-state-machine | src/state-machine.h | <gh_stars>0
/* Copyright (c) 2014, <NAME> <<EMAIL>>
*
* 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
* notic... |
dianedelallee/Blinn-Phong | common/sbbuffer.h | #pragma once
#include <assert.h>
/* stretchy buffer init: NULL free: sbfree() push_back: sbpush() size: sbcount() */
#define sbfree(a) ((a) ? FREE(stb__sbraw(a)),0 : 0)
#define sbpush(a,v) (stb__sbmaybegrow(a,1), (a)[stb__sbn(a)++] = (v))
#define sbcount(a) ((a) ? stb__sbn(a) : 0)
#define sba... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_zc.h | <filename>Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_zc.h
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_ZC_H
#define BATTERY_MODEL_981C414B_1_DS_ZC_H 1
int32_T Battery_Model_981c414b_1_ds_zc ( const NeDynamicSystem * sys , const
NeDynamicSystemInput * Q ,... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_gateway.c | #ifdef MATLAB_MEX_FILE
#include "tmwtypes.h"
#else
#include "rtwtypes.h"
#endif
#include "nesl_rtw.h"
#include "Battery_Model_981c414b_1.h"
#include "Battery_Model_981c414b_1_gateway.h"
void Battery_Model_981c414b_1_gateway ( void ) { NeModelParameters
modelparams = { ( NeSolverType ) 2 , 0.001 , 0 , 0 , 0.001 , 0 , 0 ... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1.c | <reponame>hadrianhu888/BatteryManagementSystem
#include "ne_std.h"
#include "pm_default_allocator.h"
#include "ne_dae_fwd.h"
#include "ne_profiler_fwd.h"
#include "ne_dae_construct.h"
#include "nesl_la.h"
#include "Battery_Model_981c414b_1.h"
#include "Battery_Model_981c414b_1_ds.h"
void Battery_Model_981c414b_1_dae ( ... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/look1_binlxpw.h | #ifndef RTW_HEADER_look1_binlxpw_h_
#define RTW_HEADER_look1_binlxpw_h_
#include "rtwtypes.h"
#include "multiword_types.h"
extern real_T look1_binlxpw(real_T u0, const real_T bp0[], const real_T table[],
uint32_T maxIndex);
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_m.c | <filename>Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_m.c
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_m.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Mod... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/multiword_types.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifndef MULTIWORD_TYPES_H
#define MULTIWORD_TYPES_H
#include "rtwtypes.h"
typedef int64_T chunk_T;
typedef uint64_T uchunk_T;
typedef long long longlong_T;
typedef struct {
uint64_T chunks[2];
} int128m_T;
typedef struct {
int128m_T re;
int128m_T im;
} cint128m_T;
... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/_sfprj/Balancing_Logic/_self/sfun/src/Balancing_Logic_sfun.c | /* Include files */
#include "Balancing_Logic_sfun.h"
#include "c1_Balancing_Logic.h"
/* Forward Declarations */
/* Type Definitions */
/* Named Constants */
/* Variable Declarations */
/* Variable Definitions */
/* Function Declarations */
/* Function Definitions */
void Balancing_Logic_initializer(void)
{
}
v... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dpdxf_p.h | #ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_DPDXF_P_H
#define BATTERY_MODEL_981C414B_1_DS_DPDXF_P_H 1
int32_T Battery_Model_981c414b_1_ds_dpdxf_p ( const NeDynamicSystem * sys ,
const NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cplusplus
}
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_types.h | <reponame>hadrianhu888/BatteryManagementSystem<gh_stars>1-10
#ifndef RTW_HEADER_Battery_Model_types_h_
#define RTW_HEADER_Battery_Model_types_h_
#include "rtwtypes.h"
#include "model_reference_types.h"
#include "builtin_typeid_types.h"
#include "multiword_types.h"
#ifndef DEFINED_TYPEDEF_FOR_BMS_Output_
#define DEFINED... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model.h | <reponame>hadrianhu888/BatteryManagementSystem<filename>Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model.h
#ifndef RTW_HEADER_Battery_Model_h_
#define RTW_HEADER_Battery_Model_h_
#include <stddef.h>
#include <string.h>
#include "rtw_modelmap_simtarget.h"
#ifndef Battery_Model_COMMON_INCLUDES_
#define Ba... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/_sfprj/Balancing_Logic/_self/sfun/src/half_type.c | #include <math.h>
#include <string.h>
#include "half_type.h"
/* Utility function */
uint32_T getBitfieldFromFloat(real32_T a)
{
uint32_T bitfield;
memcpy(&bitfield, &a, sizeof(real32_T));
return bitfield;
}
real32_T getFloatFromBitfield(uint32_T a)
{
real32_T value;
memcpy(&value, &a, sizeof(real32_T));
r... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_ic.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_ic.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_1... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/look1_binlxpw.c | <reponame>hadrianhu888/BatteryManagementSystem<filename>Battery_System_R2020a/work/slprj/sim/_sharedutils/look1_binlxpw.c
#include "rtwtypes.h"
#include "multiword_types.h"
#include "look1_binlxpw.h"
real_T look1_binlxpw(real_T u0, const real_T bp0[], const real_T table[],
uint32_T maxIndex)
{
r... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_capi.h | #ifndef RTW_HEADER_Battery_Model_capi_h_
#define RTW_HEADER_Battery_Model_capi_h_
#include "Battery_Model.h"
extern void Battery_Model_InitializeDataMapInfo ( cmwtushrfh * const
djmxej3cna , void * sysRanPtr , int contextTid ) ;
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_m_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_m_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_H
#define BATTERY_MODEL_981C414B_1_DS_H 1
extern NeDynamicSystem * Battery_Model_981c414b_1_dae_ds ( PmAllocator *
allocator ) ;
#endif
#ifdef __cplusplus
}
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dpdxf_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dpdxf_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c4... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/builtin_typeid_types.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifndef BUILTIN_TYPEID_TYPES_H
#define BUILTIN_TYPEID_TYPES_H
#include "rtwtypes.h"
#ifndef BUILTIN_TYPEID_TYPES
#define BUILTIN_TYPEID_TYPES
typedef enum {
SS_DOUBLE = 0,
SS_SINGLE = 1,
SS_INT8 = 2,
SS_UINT8 = 3,
SS_INT16 = 4,
SS_UINT16 = 5,
SS_INT32 = 6,
... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_vmm.c | <filename>Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_vmm.c
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_vmm.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_obs_all.h | #ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_OBS_ALL_H
#define BATTERY_MODEL_981C414B_1_DS_OBS_ALL_H 1
int32_T Battery_Model_981c414b_1_ds_obs_all ( const NeDynamicSystem * sys ,
const NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cplusplus
}
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_obs_il.c | <reponame>hadrianhu888/BatteryManagementSystem
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_obs_il.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#incl... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_a.h | #ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_A_H
#define BATTERY_MODEL_981C414B_1_DS_A_H 1
int32_T Battery_Model_981c414b_1_ds_a ( const NeDynamicSystem * sys , const
NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cplusplus
}
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_external_struct.h | #ifndef struct__ExternalFunctionStructTag
#define struct__ExternalFunctionStructTag
typedef struct ETTS0Tag { real_T mField0 [ 2 ] ; real_T mField1 [ 2 ] ;
size_t mField2 [ 1 ] ; } ETTS0 ;
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dxm.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dxm.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_msf.c | #if !defined(S_FUNCTION_NAME)
#define S_FUNCTION_NAME Battery_Model_msf
#endif
#define S_FUNCTION_LEVEL 2
#if !defined(RTW_GENERATED_S_FUNCTION)
#define RTW_GENERATED_S_FUNCTION
#endif
#include <stdio.h>
#include <math.h>
#include "simstruc.h"
#include "fixedpoint.h"
#include "mwstringutil.h"
#define rt_log... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_capi.c | #include <stddef.h>
#include "rtw_capi.h"
#ifdef HOST_CAPI_BUILD
#include "Battery_Model_capi_host.h"
#define sizeof(s) ((size_t)(0xFFFF))
#undef rt_offsetof
#define rt_offsetof(s,el) ((uint16_T)(0xFFFF))
#define TARGET_CONST
#define TARGET_STRING(s) (s)
#else
#include "builtin_typeid_types.h"
#include "Battery_Model.h... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/_sfprj/Balancing_Logic/_self/sfun/src/rtwtypes.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifndef RTWTYPES_H
#define RTWTYPES_H
#include "tmwtypes.h"
#ifndef POINTER_T
#define POINTER_T
typedef void * pointer_T;
#endif
/* Logical type definitions */
#if (!defined(__cplusplus))
#ifndef false
#define false (0U)
#endif
#ifndef true
#de... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/rt_nonfinite.c | #include "rt_nonfinite.h"
#include "rtGetNaN.h"
#include "rtGetInf.h"
#define NumBitsPerChar 8U
real_T rtInf;
real_T rtMinusInf;
real_T rtNaN;
real32_T rtInfF;
real32_T rtMinusInfF;
real32_T rtNaNF;
void rt_InitInfAndNaN(size_t realSize)
{
(void) (realSize);
rtNaN = rtGetNaN();
rtNaNF = rtGetNaNF... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_duf.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_duf.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/_sfprj/Balancing_Logic/_self/sfun/src/half_type.h | #ifndef HALF_TYPE_H
#define HALF_TYPE_H
#include "rtwtypes.h"
/* Utility function */
uint32_T getBitfieldFromFloat(real32_T a);
real32_T getFloatFromBitfield(uint32_T a);
/* C type definition */
typedef struct {
uint16_T bitPattern;
} half_t;
typedef half_t real16_T;
/* Complex type definition for half_t */
typed... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/rtGetInf.c | #include "rtGetInf.h"
#define NumBitsPerChar 8U
real_T rtGetInf(void)
{
size_t bitsPerReal = sizeof(real_T) * (NumBitsPerChar);
real_T inf = 0.0;
if (bitsPerReal == 32U) {
inf = rtGetInfF();
} else {
union {
LittleEndianIEEEDouble bitVal;
real_T fltVal;
} tmpVal;
tm... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_f.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_f.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_1_... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_assert.c | <reponame>hadrianhu888/BatteryManagementSystem
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_assert.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#incl... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/rtGetNaN.c | <filename>Battery_System_R2020a/work/slprj/sim/_sharedutils/rtGetNaN.c<gh_stars>1-10
#include "rtGetNaN.h"
#define NumBitsPerChar 8U
real_T rtGetNaN(void)
{
size_t bitsPerReal = sizeof(real_T) * (NumBitsPerChar);
real_T nan = 0.0;
if (bitsPerReal == 32U) {
nan = rtGetNaNF();
} else {
un... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_y.c | <gh_stars>1-10
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_y.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Mo... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_obs_exp.h | #ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_OBS_EXP_H
#define BATTERY_MODEL_981C414B_1_DS_OBS_EXP_H 1
int32_T Battery_Model_981c414b_1_ds_obs_exp ( const NeDynamicSystem * sys ,
const NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cplusplus
}
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1.h | #ifndef __Battery_Model_981c414b_1_h__
#define __Battery_Model_981c414b_1_h__
#ifdef __cplusplus
extern "C" {
#endif
extern void Battery_Model_981c414b_1_dae ( NeDae * * dae , const
NeModelParameters * modelParams , const NeSolverParameters * solverParams ) ;
#ifdef __cplusplus
}
#endif
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_mode.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_mode.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_tduf_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_tduf_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c41... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dxf.c | <reponame>hadrianhu888/BatteryManagementSystem<gh_stars>1-10
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dxf.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_stru... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/_sharedutils/model_reference_types.h | #ifndef MODEL_REFERENCE_TYPES_H
#define MODEL_REFERENCE_TYPES_H
#include "rtwtypes.h"
#ifndef MODEL_REFERENCE_TYPES
#define MODEL_REFERENCE_TYPES
typedef struct _rtTimingBridge_tag rtTimingBridge;
struct _rtTimingBridge_tag {
uint32_T nTasks;
uint32_T** clockTick;
uint32_T** clockTickH;
uint32_T* taskCounter;
... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_capi_host.h | #ifndef RTW_HEADER_Battery_Model_cap_host_h__
#define RTW_HEADER_Battery_Model_cap_host_h__
#ifdef HOST_CAPI_BUILD
#include "rtw_capi.h"
#include "rtw_modelmap_simtarget.h"
typedef struct { rtwCAPI_ModelMappingInfo mmi ; }
Battery_Model_host_DataMapInfo_T ;
#ifdef __cplusplus
extern "C" {
#endif
void Battery_Model_host... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_private.h | #ifndef RTW_HEADER_Battery_Model_private_h_
#define RTW_HEADER_Battery_Model_private_h_
#include "rtwtypes.h"
#include "model_reference_types.h"
#include "builtin_typeid_types.h"
#include "multiword_types.h"
#include "simtarget/slMdlrefSimTargetCoreHeaders.h"
#include "simtarget/slMdlrefSimTargetInstrumentationHeaders.... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_gateway.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifndef __Battery_Model_981c414b_1_gateway_h__
#define __Battery_Model_981c414b_1_gateway_h__
#ifdef __cplusplus
extern "C" {
#endif
extern void Battery_Model_981c414b_1_gateway ( void ) ;
#ifdef __cplusplus
}
#endif
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dxm_p.c | <reponame>hadrianhu888/BatteryManagementSystem<gh_stars>1-10
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dxm_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_st... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_y.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_Y_H
#define BATTERY_MODEL_981C414B_1_DS_Y_H 1
int32_T Battery_Model_981c414b_1_ds_y ( const NeDynamicSystem * sys , const
NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cplusplu... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_tdxf_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_tdxf_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c41... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/_sfprj/Balancing_Logic/_self/sfun/src/c1_Balancing_Logic.c | /* Include files */
#include "simstruc.h"
#include "fixedpoint.h"
#include "simtarget/slSimTgtLogLoadBlocksSfcnBridge.h"
#include "Balancing_Logic_sfun.h"
#include "c1_Balancing_Logic.h"
#define _SF_MEX_LISTEN_FOR_CTRL_C(S) sf_mex_listen_for_ctrl_c(S);
#ifdef utFree
#undef utFree
#endif
#ifdef utMalloc
#undef utMal... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_externals.h | <filename>Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_externals.h
#include "external_std.h"
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_obs_exp.c | <reponame>hadrianhu888/BatteryManagementSystem
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_obs_exp.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#inc... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_a.c | <gh_stars>1-10
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_a.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Mo... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_sys_struct.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifndef struct__NeDynamicSystemTag
#define struct__NeDynamicSystemTag
typedef struct _NeDynamicSystemTag { NeDynamicSystem mBase ; int32_T mRefCnt
; PmAllocator mAlloc ; real_T * mField0 ; real_T * mField1 ; real_T * mField2
; real_T * mField3 ; } _NeDynamicSystem ;
#else
... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dxy_p.c | <gh_stars>1-10
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dxy_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Batter... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_log.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_LOG_H
#define BATTERY_MODEL_981C414B_1_DS_LOG_H 1
int32_T Battery_Model_981c414b_1_ds_log ( const NeDynamicSystem * sys , const
NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cp... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dxf_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dxf_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/ssc_ml_fun.h | <reponame>hadrianhu888/BatteryManagementSystem
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SSC_ML_FUN_H
#define SSC_ML_FUN_H 1
#endif
#ifdef __cplusplus
} ;
#endif
|
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_a_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_a_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_dxy.c | <reponame>hadrianhu888/BatteryManagementSystem
#include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_dxy.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_tdxy_p.h | <reponame>hadrianhu888/BatteryManagementSystem<filename>Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_tdxy_p.h
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_TDXY_P_H
#define BATTERY_MODEL_981C414B_1_DS_TDXY_P_H 1
int32_T Battery_Model_981c414b_1_ds_tdxy_p ( ... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/_sfprj/Balancing_Logic/_self/sfun/src/c1_Balancing_Logic.h | <gh_stars>1-10
#ifndef __c1_Balancing_Logic_h__
#define __c1_Balancing_Logic_h__
#include "sf_runtime/sfc_sdi.h"
#include "rtw_capi.h"
#include "rtw_modelmap.h"
/* Forward Declarations */
/* Type Definitions */
#ifndef enum_c1_BMS_State_Enum
#define enum_c1_BMS_State_Enum
enum c1_BMS_State_Enum
{
c1_BMS_State_Enum... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_b_p.c | #include "ne_ds.h"
#include "Battery_Model_981c414b_1_ds_sys_struct.h"
#include "Battery_Model_981c414b_1_ds_b_p.h"
#include "Battery_Model_981c414b_1_ds.h"
#include "Battery_Model_981c414b_1_ds_externals.h"
#include "Battery_Model_981c414b_1_ds_external_struct.h"
#include "ssc_ml_fun.h"
int32_T Battery_Model_981c414b_... |
hadrianhu888/BatteryManagementSystem | Battery_System_R2020a/work/slprj/sim/Battery_Model/Battery_Model_981c414b_1_ds_m.h | #ifdef __cplusplus
extern "C" {
#endif
#ifndef BATTERY_MODEL_981C414B_1_DS_M_H
#define BATTERY_MODEL_981C414B_1_DS_M_H 1
int32_T Battery_Model_981c414b_1_ds_m ( const NeDynamicSystem * sys , const
NeDynamicSystemInput * Q , NeDsMethodOutput * M ) ;
#endif
#ifdef __cplusplus
}
#endif
|
treefort/workbench-cam-pebble | src/c/workbench-cam-pebble.c | <reponame>treefort/workbench-cam-pebble
#include <pebble.h>
static Window *s_window;
static TextLayer *s_text_layer;
static Layer *s_canvas_layer;
typedef struct {
int hours;
int minutes;
} Time;
static Time s_last_time;
static char time_str[6];
static GPoint rec_center;
static GRect stop_rect;
static uint16_t ... |
TimSlanschek/xv6_OS | include/fcntl.h | <reponame>TimSlanschek/xv6_OS
#ifndef INCLUDE_FCNTL_h_
#define INCLUDE_FCNTL_h_
#define O_RDONLY 0x001
#define O_WRONLY 0x002
#define O_RDWR 0x004
#define O_CREATE 0x200
#endif // INCLUDE_FCNTL_h_
|
TimSlanschek/xv6_OS | include/types.h | <reponame>TimSlanschek/xv6_OS
#ifndef INCLUDE_TYPES_h_
#define INCLUDE_TYPES_h_
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned char uchar;
typedef uint pde_t;
#endif //INCLUDE_TYPES_h_
|
TimSlanschek/xv6_OS | kernel/src/sysproc.c | #include "asm/x86.h"
#include "types.h"
#include "defs.h"
#include "date.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
int
sys_fork(void)
{
return fork();
}
int
sys_exit(void)
{
exit();
return 0; // not reached
}
int
sys_wait(void)
{
return wait();
}
int
sys_kill(void)
{
... |
TimSlanschek/xv6_OS | user/src/testSetup.c | <filename>user/src/testSetup.c
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
#include "testparams.h"
int
main(int argc, char *argv[])
{
//
// Test setting and getting of UID
//
printf(1, "\n");
printf(1, "\n");
printf(1, "Setting/Getting UID Test Sta... |
TimSlanschek/xv6_OS | user/src/testChange.c | <reponame>TimSlanschek/xv6_OS
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
#include "testparams.h"
int
main(int argc, char *argv[])
{
setuid(testUID);
int UID = getuid();
printf(1, "Current UID is %d\n", UID);
// Testing file owner change
int owner = ge... |
TimSlanschek/xv6_OS | user/include/testparams.h | #define testUID 2
#define testChangeFile "testfile0"
#define testNoProtFile "testfile1"
#define testRProtFile "testfile2"
#define testWProtFile "testfile3"
#define testRWProtFile "testfile4" |
TimSlanschek/xv6_OS | user/src/testPerms.c | <reponame>TimSlanschek/xv6_OS
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
#include "testparams.h"
int
main(int argc, char *argv[])
{
// Change UID to something different than what was set up in testSetup (2)
int UID = 4;
if (UID == testUID) {
printf(1, ... |
yoursunny/carepo | segment/segment.c | #include "segment.h"
struct segment_list* segment_list_ctor(uint32_t count) {
struct segment_list* self = calloc(1, sizeof(*self));
self->count = count;
self->list = calloc(count, sizeof(struct segment));
return self;
}
void segment_list_dtor(struct segment_list** selfp) {
struct segment_list* self = *selfp... |
yoursunny/carepo | repo/ndnr_link.c | <filename>repo/ndnr_link.c
/**
* @file ndnr_link.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you ca... |
yoursunny/carepo | segment/fetcher.c | <filename>segment/fetcher.c
#include "fetcher.h"
#include <ndn/digest.h>
#include <ndn/hashtb.h>
struct file_fetcher* file_fetcher_ctor(struct segment_list* sl, FILE* file, struct ndn* h, struct ndn_charbuf* name) {
struct file_fetcher* self = calloc(1, sizeof(*self));
self->h = h;
self->sl = sl;
self->file = ... |
yoursunny/carepo | repo/ndnr_msg.c | <gh_stars>0
/**
* @file ndnr_msg.c
*
* Logging support for ndnr.
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2008, 2009, 2011 Palo Alto Research Center, Inc.
*
* This w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.