repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
rs0h/jemalloc
src/extent.c
<gh_stars>0 #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" #include "jemalloc/internal/assert.h" #include "jemalloc/internal/extent_dss.h" #include "jemalloc/internal/extent_mmap.h" #include "jemalloc/internal/ph.h" #include "jemalloc/internal/rtree.h" #inclu...
rs0h/jemalloc
include/jemalloc/internal/prof_externs.h
#ifndef JEMALLOC_INTERNAL_PROF_EXTERNS_H #define JEMALLOC_INTERNAL_PROF_EXTERNS_H #include "jemalloc/internal/mutex.h" extern malloc_mutex_t bt2gctx_mtx; extern malloc_mutex_t tdatas_mtx; extern malloc_mutex_t prof_dump_mtx; extern bool opt_prof; extern bool opt_prof_active; extern bool opt_prof_thread_active_init; ...
rs0h/jemalloc
include/jemalloc/internal/witness.h
#ifndef JEMALLOC_INTERNAL_WITNESS_H #define JEMALLOC_INTERNAL_WITNESS_H #include "jemalloc/internal/ql.h" /******************************************************************************/ /* LOCK RANKS */ /******************************************************************************/ /* * Witnesses with rank WITNES...
rs0h/jemalloc
test/unit/buf_writer.c
#include "test/jemalloc_test.h" #include "jemalloc/internal/buf_writer.h" #define TEST_BUF_SIZE 16 #define UNIT_MAX (TEST_BUF_SIZE * 3) static size_t test_write_len; static char test_buf[TEST_BUF_SIZE]; static uint64_t arg; static uint64_t arg_store; static void test_write_cb(void *cbopaque, const char *s) { size_...
rs0h/jemalloc
include/jemalloc/internal/buf_writer.h
#ifndef JEMALLOC_INTERNAL_BUF_WRITER_H #define JEMALLOC_INTERNAL_BUF_WRITER_H /* * Note: when using the buffered writer, cbopaque is passed to write_cb only * when the buffer is flushed. It would make a difference if cbopaque points * to something that's changing for each write_cb call, or something that * affect...
robert-butts/parallel-patterns
data/data.h
#ifndef hello_h #define hello_h #include <cstring> // for size_t namespace patterns { //#define STAR_FIELD_COUNT 50000 class star { public: enum {FieldCount = 50000}; double ascension; double declination; int fields[FieldCount]; }; class stars { public: enum {FieldCount = 50000}; stars(size_t count); v...
robert-butts/parallel-patterns
forkjoin/forkjoin.h
#ifndef forkjoin_h #define forkjoin_h namespace patterns { void forkjoin(); } // namespace patterns #endif
robert-butts/parallel-patterns
patterns.h
#ifndef hello_h #define hello_h namespace patterns { void map(); void stencil(); void reduce(); void scan(); void pack(); void gather(); void workpile(); } // namespace patterns #endif
robert-butts/parallel-patterns
collectives/collectives.h
<reponame>robert-butts/parallel-patterns<filename>collectives/collectives.h #ifndef hello_h #define hello_h namespace patterns { void reduce_floats(); } // namespace patterns #endif
mi2016/docker
contrib/syscall-test/acct.c
#define _GNU_SOURCE #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> int main(int argc, char **argv) { int err = acct("/tmp/t"); if (err == -1) { fprintf(stderr, "acct failed: %s\n", strerror(errno)); exit(EXIT_FAILURE); } exit(EXIT_SUCCESS); }
mi2016/docker
vendor/src/github.com/mattn/go-sqlite3/sqlite3-binding.h
#ifndef USE_LIBSQLITE3 #include "code/sqlite3-binding.h" #else #include <sqlite3.h> #endif
GimiTechno/Arduino_DEV
src/Sensor/SHT31/SHT31.h
#ifndef _SHT31_H_ #define _SHT31_H_ #include <stdio.h> #include <stdint.h> #include <string.h> #include <math.h> #include "Arduino.h" #include <Wire.h> #ifndef OFF #define OFF 0x00 #endif #ifndef ON #define ON 0x01 #endif #ifndef LOW #define LOW 0x00 #endif #ifndef HIGH #define HIGH 0x01 #endif #ifndef DIS...
GimiTechno/Arduino_DEV
src/ESP32/Blynk_Temploger/BME280/Temploger/bme280_i2c.h
<reponame>GimiTechno/Arduino_DEV #ifndef _BME280_I2C_H_ #define _BME280_I2C_H_ #include <stdio.h> #include <stdint.h> #include <Arduino.h> #include <Wire.h> typedef struct{ /*< Compensated temperature */ double temperature; /*< Compensated pressure */ double pressure; /*< Compensated humidity *...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHPointziApi.h
/* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipImageElement.h
<reponame>Xingyuj/PhonegapPointzi-beta /* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipSeriesElement.h
/* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipTargetElement.h
/* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/StreetHawkCore_Pointzi.h
/* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipAnimationElement.h
<filename>src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipAnimationElement.h /* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHBaseViewController.h
<reponame>Xingyuj/PhonegapPointzi-beta /* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipButtonElement.h
<filename>src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipButtonElement.h /* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundati...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipWebElement.h
<reponame>Xingyuj/PhonegapPointzi-beta /* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipFeedbackElement.h
/* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * ...
Xingyuj/PhonegapPointzi-beta
src/ios/SDK/StreetHawkCore_Pointzi.framework/Headers/SHTipBaseElement.h
/* * Copyright (c) StreetHawk, All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * ...
emiliopavia/mumblekit
src/MKAudioInput.h
<filename>src/MKAudioInput.h // Copyright 2009-2012 The MumbleKit Developers. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #import <MumbleKit/MKAudio.h> #import <MumbleKit/MKConnection.h> #import "MKAudioDevice.h" @interface MKAudioInput ...
gaede/SIO
source/examples/common/include/sioexamples/data.h
#pragma once // -- std headers #include <string> namespace sio { namespace example { // simple data structure holding particle information struct particle { int _pid {0} ; float _energy {0.f} ; float _x {0.f} ; float _y {0.f} ; float ...
gaede/SIO
source/tests/SIO_testing_common.h
<filename>source/tests/SIO_testing_common.h<gh_stars>0 #ifndef SIO_TESTING_COMMON_H #define SIO_TESTING_COMMON_H #include "SIO_definitions.h" #include "SIO_functions.h" #include "SIO_block.h" #include "SIO_stream.h" #include <vector> namespace sio { namespace test { class SimpleBlock : public SIO_block...
gaede/SIO
source/tests/SIO_testing.h
<gh_stars>0 #ifndef SIO_TESTING_H #define SIO_TESTING_H // -- std headers #include <iostream> #include <string> #include <sstream> namespace sio { namespace test { class UnitTest { public: UnitTest(const std::string &name, bool abortOnFail = true) : m_name(name), m_abortOnFail(abortOnFai...
gaede/SIO
source/examples/common/include/sioexamples/blocks.h
#pragma once #include <sio/block.h> #include <sio/version.h> #include <sio/io_device.h> #include <sioexamples/data.h> namespace sio { namespace example { /** * @brief particle_block class. * * Illustrates the reading and writing of a simple data structure * in a block with sio...
deeglaze/cctz
include/cctz/civil_time.h
<filename>include/cctz/civil_time.h // Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 ...
deeglaze/cctz
include/cctz/civil_time_detail.h
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
AloneMonkey/RevealForward
RevealForward/BonjourUtils.h
<gh_stars>1-10 // // BonjourUtils.h // RevealForward // // Created by monkey on 16/8/26. // // #import <Foundation/Foundation.h> @interface BonjourUtils : NSObject + (NSString *)queryIPAddressByHost:(NSString*) hostName; @end
AloneMonkey/RevealForward
RevealForward/BonjourManager.h
<reponame>AloneMonkey/RevealForward<gh_stars>1-10 // // BonjourManager.h // RevealForward // // Created by monkey on 16/8/26. // // #import "Bonjour.h" #import "BonjourUtils.h" #import <Foundation/Foundation.h> @interface BonjourManager : NSObject + (instancetype)sharedManager; -(void)start; @end
AloneMonkey/RevealForward
RevealForward/Bonjour.h
// // Bonjour.h // RevealForward // // Created by monkey on 16/8/26. // // #import <Foundation/Foundation.h> @interface Bonjour : NSObject @property (nonatomic, strong) NSNetService *service; @property (nonatomic, strong) NSString *ip; @property (nonatomic, strong) NSDictionary *txtRecord; -(void)output; @end...
Ushio/DirectX12_Example
kernels/bvh.h
<reponame>Ushio/DirectX12_Example #ifndef __BVH_H__ #define __BVH_H__ #define BIN_COUNT 8 #define EXECUTION_BATCH_COUNT 64 #define SAH_AABB_COST 1.0f #define SAH_ELEM_COST 2.0f #if defined(_MSC_VER) #include <stdint.h> using uint = uint32_t; #endif struct BuildTask { int lower[3]; int upper[3]; int ge...
pengaoao/wenet
runtime/core/utils/utils.h
// Copyright (c) 2020 Mobvoi Inc (<NAME>) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
pengaoao/wenet
runtime/core/utils/string.h
// Copyright (c) 2021 Mobvoi Inc (<NAME>) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
pengaoao/wenet
runtime/core/grpc/grpc_server.h
// Copyright (c) 2021 Ximalaya Speech Team (<NAME>) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
ultraembedded/librtos
kernel/event.c
<reponame>ultraembedded/librtos #include "event.h" #include "critical.h" #include "os_assert.h" #ifdef INCLUDE_EVENTS //----------------------------------------------------------------- // event_init: Initialise event object //----------------------------------------------------------------- void event_init(struct ev...
ultraembedded/librtos
kernel/mutex.c
#include "mutex.h" #include "thread.h" #include "critical.h" #include "os_assert.h" #ifdef INCLUDE_MUTEX //----------------------------------------------------------------- // mutex_init: Initialise mutex //----------------------------------------------------------------- void mutex_init(struct mutex *mtx, int recursi...
ultraembedded/librtos
kernel/event.h
#ifndef __EVENT_H__ #define __EVENT_H__ #include "thread.h" #include "semaphore.h" //----------------------------------------------------------------- // Defines //----------------------------------------------------------------- #define EVENT_INIT() {0, SEMAPHORE_INIT(0)} #define EVENT_DECL(id) \ static s...
ultraembedded/librtos
kernel/list.h
#ifndef __LIST_H__ #define __LIST_H__ #ifndef LIST_ASSERT #define LIST_ASSERT(x) #endif //----------------------------------------------------------------- // Types //----------------------------------------------------------------- struct link_list; struct link_node { struct link_node *previous; stru...
ultraembedded/librtos
kernel/semaphore.h
#ifndef __SEMAPHORE_H__ #define __SEMAPHORE_H__ #include "thread.h" #include "list.h" //----------------------------------------------------------------- // Defines //----------------------------------------------------------------- #define SEMAPHORE_INIT(c) {(c), LIST_INIT} #define SEMAPHORE_DECL(id, c) \ ...
ultraembedded/librtos
kernel/mailbox.h
<filename>kernel/mailbox.h #ifndef __MAILBOX_H__ #define __MAILBOX_H__ #include "thread.h" #include "list.h" #include "semaphore.h" //----------------------------------------------------------------- // Defines //----------------------------------------------------------------- #define MAILBOX_INIT(e, s) {(e), (s)...
ultraembedded/librtos
testcases/test_mtx1.c
#include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //----------------------------------------------------------------- THREA...
ultraembedded/librtos
testcases/test_torture0.c
#include "test.h" #define assert OS_ASSERT THREAD_DECL(thread0, 1024); THREAD_DECL(thread1, 1024); static volatile int func1_count; static volatile int func2_count; static void* func1(void *a); static void* func2(void *a); //----------------------------------------------------------------- // testcase: //----------...
ultraembedded/librtos
testcases/test_kill0.c
<gh_stars>10-100 #include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //------------------------------------------------------...
ultraembedded/librtos
kernel/thread.c
<filename>kernel/thread.c #include "thread.h" #include "critical.h" #include "os_assert.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- #ifdef PLATFORM_IDLE_TASK_STACK #define IDLE_TASK_STACK PLATFORM_IDLE...
ultraembedded/librtos
kernel/thread.h
<reponame>ultraembedded/librtos<filename>kernel/thread.h #ifndef __THREAD_H__ #define __THREAD_H__ //----------------------------------------------------------------- // Includes //----------------------------------------------------------------- #include "cpu_thread.h" #include "list.h" //---------------------------...
ultraembedded/librtos
testcases/test_sem0.c
#include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //----------------------------------------------------------------- THREA...
ultraembedded/librtos
testcases/test_sem2.c
#include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //----------------------------------------------------------------- THREA...
ultraembedded/librtos
testcases/test_basic1.c
<filename>testcases/test_basic1.c #include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //-------------------------------------...
ultraembedded/librtos
testcases/test_join1.c
<reponame>ultraembedded/librtos #include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //---------------------------------------...
ultraembedded/librtos
kernel/mailbox.c
#include "mailbox.h" #include "critical.h" #include "os_assert.h" #ifdef INCLUDE_MAILBOX //----------------------------------------------------------------- // mailbox_init: Initialise mailbox //----------------------------------------------------------------- void mailbox_init(struct mailbox *pMbox, uint32_t *storage...
ultraembedded/librtos
kernel/critical.h
<filename>kernel/critical.h #ifndef __CRITICAL_H__ #define __CRITICAL_H__ #include "cpu_thread.h" //----------------------------------------------------------------- // critical_start: Force interrupts to be disabled (recursive ok) //----------------------------------------------------------------- static inline int ...
ultraembedded/librtos
testcases/test_join0.c
<filename>testcases/test_join0.c #include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //--------------------------------------...
ultraembedded/librtos
kernel/mutex.h
<gh_stars>10-100 #ifndef __MUTEX_H__ #define __MUTEX_H__ #include "list.h" //----------------------------------------------------------------- // Defines //----------------------------------------------------------------- #define MUTEX_INIT() {0, 0, 0, LIST_INIT} #define MUTEX_INIT_RECURSIVE() {0,...
ultraembedded/librtos
kernel/semaphore.c
<reponame>ultraembedded/librtos #include "semaphore.h" #include "critical.h" #include "os_assert.h" #ifdef INCLUDE_SEMAPHORE //----------------------------------------------------------------- // semaphore_init: Initialise semaphore with an initial value //--------------------------------------------------------------...
ultraembedded/librtos
kernel/os_assert.h
<gh_stars>10-100 #ifndef __OS_ASSERT_H__ #define __OS_ASSERT_H__ #include "cpu_thread.h" // To disable RTOS assertions then define CONFIG_RTOS_RELEASE_MODE //----------------------------------------------------------------- // DEBUG //----------------------------------------------------------------- #ifndef CONFIG_R...
ultraembedded/librtos
testcases/test.h
#ifndef __TEST_H__ #define __TEST_H__ #include "kernel/critical.h" #include "kernel/os_assert.h" #include "kernel/list.h" #include "kernel/thread.h" #include "kernel/mutex.h" #include "kernel/semaphore.h" #include "kernel/event.h" #include "kernel/mutex.h" #include "kernel/mailbox.h" #ifdef __unix__ #include <stdio....
ultraembedded/librtos
testcases/test_basic2.c
#include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //----------------------------------------------------------------- THREA...
ultraembedded/librtos
testcases/test_sem1.c
#include "test.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- //----------------------------------------------------------------- // Locals: //----------------------------------------------------------------- THREA...
ultraembedded/librtos
arch/template/cpu_thread.h
<gh_stars>10-100 #ifndef __CPU_THREAD_H__ #define __CPU_THREAD_H__ #include <stdint.h> //----------------------------------------------------------------- // Defines //----------------------------------------------------------------- #define STACK_CHK_BYTE 0xCAFEFEAD // Optional: Define gcc section linkage to r...
ultraembedded/librtos
arch/riscv/cpu_thread.c
#include "cpu_thread.h" #include "kernel/thread.h" #include "kernel/os_assert.h" #include "exception.h" #include "csr.h" #include "assert.h" #include "timer.h" //----------------------------------------------------------------- // Defines: //----------------------------------------------------------------- // Macro ...
ultraembedded/librtos
arch/linux/cpu_thread.c
<reponame>ultraembedded/librtos #include "cpu_thread.h" #include "kernel/thread.h" #include "kernel/os_assert.h" #include <stdio.h> #include <assert.h> #include <pthread.h> #include <sched.h> #include <signal.h> #include <errno.h> #include <sys/time.h> #include <time.h> #include <sys/times.h> #include <stdlib.h> #incl...
southpeak/Minya
Minya/Module/MIUtilities.h
// // MIUtilities.h // MinyaDemo // // Created by Konka on 2016/10/27. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> typedef void (^MICallback)(NSDictionary<NSString *, id> * _Nullable);
southpeak/Minya
Demo/MinyaDemo/InterestingnessStore.h
// // InterestingnessStore.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIStore.h" @interface InterestingnessStore : MIStore @end
southpeak/Minya
Minya/Minya.h
// // Minya.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #ifndef Minya_h #define Minya_h #define MINYA_VERSION 1.0.1 #import "MIStore.h" #import "MIStorage.h" #import "MIService.h" #import "MIPipeline.h" #import "MIViewController.h" #import "UIView+MI...
southpeak/Minya
Demo/MinyaDemo/InterestingnessViewController.h
// // InterestingViewController.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIViewController.h" @interface InterestingnessViewController : MIViewController @end
southpeak/Minya
Demo/MinyaDemo/InterestingnessView.h
// // InterestingnessView.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import <UIKit/UIKit.h> @interface InterestingnessView : UIView @end
southpeak/Minya
Demo/MinyaDemo/SearchPhotosService.h
// // SearchPhotosService.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIService.h" @interface SearchPhotosService : MIService @end
southpeak/Minya
Minya/Module/MIMediator.h
<filename>Minya/Module/MIMediator.h // // MIMediator.h // MinyaDemo // // Created by Konka on 2016/9/28. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "MIUtilities.h" NS_ASSUME_NONNULL_BEGIN @class MIScene; /** * MIMediator class * * ...
southpeak/Minya
Minya/Core/NSObject+MISwizzle.h
<gh_stars>100-1000 // // NSObject+MISwizzle.h // MinyaDemo // // Created by 00 on 2016/9/28. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * Category for NSObject's method swizzling */ @interface NSObject (MISwizzle) /** * swizzling method...
southpeak/Minya
Minya/Core/NSObject+MIKVO.h
<reponame>southpeak/Minya // // NSObject+MIKVO.h // MinyaDemo // // Created by 00 on 2016/9/28. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> #import "EXTKeyPathCoding.h" NS_ASSUME_NONNULL_BEGIN #pragma mark - Macro /** * A macro for Observing an object's property * *...
southpeak/Minya
Demo/MinyaDemo/PhotoDetailViewController.h
// // PhotoDetailViewController.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIViewController.h" @interface PhotoDetailViewController : MIViewController @end
southpeak/Minya
Demo/MinyaDemo/PhotoListStore.h
// // ResultListStore.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIStore.h" #import "PhotoListPipeline.h" @interface PhotoListStore : MIStore @property (nonatomic, strong, readonly) PhotoListPipeline *photoListPipeline; @end
southpeak/Minya
Demo/MinyaDemo/SearchPipeline.h
// // RootPipeline.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIPipeline.h" @interface SearchPipeline : MIPipeline #pragma mark - input data @property (nonatomic, copy) NSString *inputSearchText; @property (nonatomic, assign) BOOL inputSearch...
southpeak/Minya
Demo/MinyaDemo/TopImagePipeline.h
// // TopImagePipeline.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIPipeline.h" @interface TopImagePipeline : MIPipeline // Normal data @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *url; @property (nonatom...
southpeak/Minya
Demo/MinyaDemo/SearchViewController.h
<filename>Demo/MinyaDemo/SearchViewController.h // // RootViewController.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIViewController.h" @interface SearchViewController : MIViewController @end
southpeak/Minya
Demo/Pods/Target Support Files/Pods-MinyaDemo/Pods-MinyaDemo-umbrella.h
<reponame>southpeak/Minya #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_MinyaDemoVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_MinyaDemoVersionString[];
southpeak/Minya
Demo/MinyaDemo/PhotoListPipeline.h
<reponame>southpeak/Minya // // ResultListPipeline.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIPipeline.h" @interface PhotoListPipeline : MIPipeline // Normal data @property (nonatomic, strong) NSMutableArray *photos; // Flag data @property...
southpeak/Minya
Demo/MinyaDemo/PhotoDetailStore.h
// // PhotoDetailStore.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIStore.h" @interface PhotoDetailStore : MIStore @end
southpeak/Minya
Minya/Core/NSObject+MINotification.h
<gh_stars>100-1000 // // NSObject+MINotification.h // MinyaDemo // // Created by 00 on 2016/11/2. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Callback for handling notification @param notification notification informations */ typedef void ...
southpeak/Minya
Demo/MinyaDemo/SearchStore.h
// // RootStore.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIStore.h" @interface SearchStore : MIStore @end
southpeak/Minya
Demo/MinyaDemo/Photo.h
// // Photo.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> /** * Photo class * * If necessary, you can declare some model for MVCS. * The model belongs to model layer, and in our example we have * not too many mod...
southpeak/Minya
Demo/MinyaDemo/PhotoDetailPipeline.h
// // PhotoDetailPipeline.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import "MIPipeline.h" #import "Photo.h" @interface PhotoDetailPipeline : MIPipeline // Normal data @property (nonatomic, strong) Photo *photo; // Flag data @property (nonatomic, as...
southpeak/Minya
Demo/MinyaDemo/InterestingnessPipeline.h
<gh_stars>100-1000 // // InterestingnessPipeline.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIPipeline.h" #import "TopImagePipeline.h" #import "PhotoListPipeline.h" @interface InterestingnessPipeline : MIPipeline @property (nonatomic, strong...
southpeak/Minya
Demo/MinyaDemo/GetPhotoContextService.h
// // GetPhotoContextService.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIService.h" @interface GetPhotoContextService : MIService @end
southpeak/Minya
Demo/MinyaDemo/GetSizesService.h
// // GetSizesService.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIService.h" @interface GetSizesService : MIService @end
southpeak/Minya
Demo/MinyaDemo/TopImageView.h
<filename>Demo/MinyaDemo/TopImageView.h // // TopImageView.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import <UIKit/UIKit.h> @interface TopImageView : UIView @end
southpeak/Minya
Minya/MVCS/MIService.h
// // MIService.h // MinyaDemo // // Created by Konka on 2016/9/27. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN #pragma mark - Block Type typedef void (^MIRequestSuccessBlock)(id _Nullable data); typedef void (^MIRequestFailBlock)(id _Nullable da...
southpeak/Minya
Demo/MinyaDemo/PhotoListView.h
// // ResultListView.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import <UIKit/UIKit.h> @interface PhotoListView : UIView @end
southpeak/Minya
Minya/MVCS/MIScene.h
<filename>Minya/MVCS/MIScene.h // // MIScene.h // MinyaDemo // // Created by Konka on 2016/9/28. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * JDScene class * * A scene is actually a view controller. * In Minya MVCS architecture, a scen...
southpeak/Minya
Minya/MVCS/MIStorage.h
<reponame>southpeak/Minya // // MIStorage.h // MinyaDemo // // Created by Konka on 2016/9/28. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN #pragma mark - Block type typedef void (^MIStorageCompletionBlock)(id data); #pragma mark - MIStorage Proto...
southpeak/Minya
Minya/MVCS/MIViewController.h
// // MIViewController.h // MinyaDemo // // Created by Konka on 2016/9/27. // Copyright © 2016年 Minya. All rights reserved. // #import <UIKit/UIKit.h> #import "MIUtilities.h" NS_ASSUME_NONNULL_BEGIN @protocol MIStore; @class MIPipeline; /** * Basic View Controller for all the view controller in our app. * ...
southpeak/Minya
Minya/MVCS/UIView+MIPipeline.h
// // UIView+MIPipeline.h // MinyaDemo // // Created by Konka on 2016/9/27. // Copyright © 2016年 Minya. All rights reserved. // #import <UIKit/UIKit.h> #import "MIPipeline.h" NS_ASSUME_NONNULL_BEGIN /** * UIView+MIPipeline Category * * UIView category for pipeline */ @interface UIView (MIPipeline) /** * ...
southpeak/Minya
Demo/MinyaDemo/SearchView.h
<reponame>southpeak/Minya // // RootView.h // MinyaDemo // // Created by Konka on 2016/10/13. // Copyright © 2016年 Minya. All rights reserved. // #import <UIKit/UIKit.h> @interface SearchView : UIView @end
southpeak/Minya
Demo/MinyaDemo/TopImageStore.h
// // TopImageStore.h // MinyaDemo // // Created by Konka on 2016/10/14. // Copyright © 2016年 Minya. All rights reserved. // #import "MIStore.h" #import "TopImagePipeline.h" @interface TopImageStore : MIStore // In general, we declare a pipeline property in the .m file. // You declare it in the .h file only when...
southpeak/Minya
Minya/MVCS/MIPipeline.h
<reponame>southpeak/Minya<filename>Minya/MVCS/MIPipeline.h<gh_stars>100-1000 // // MIPipeline.h // MinyaDemo // // Created by Konka on 2016/9/27. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> /** * Basic class for pipeline * * The pipeline is the core of the Minya MVCS...
southpeak/Minya
Minya/MVCS/MIStore.h
// // MIStore.h // MinyaDemo // // Created by Konka on 2016/9/27. // Copyright © 2016年 Minya. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class MIPipeline; #pragma mark - MIStore Protocol /** * MIStore Protocol * * This protocol defines methods for a store that it co...