Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
v-braun committed Mar 16, 2016
0 parents commit 9b7fb4e
Show file tree
Hide file tree
Showing 12,224 changed files with 2,459,242 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
46 changes: 46 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# rsyncSwift

By [v-braun - www.dev-things.net](http://www.dev-things.net).

## Description
Swift Wrapper around the [acrosync-library](https://github.com/gilbertchen/acrosync-library).

## Installation

```
git clone https://github.com/v-braun/rsyncSwift.git
```


## Usage

- Open the rsyncSwift.xcworkspace file.
- Look at the rsyncSwiftDemo xcode project


### Known Issues

If you discover any bugs, feel free to create an issue on GitHub fork and
send me a pull request.

[Issues List](https://github.com/v-braun/rsyncSwift/issues).

## Authors

![image](https://avatars3.githubusercontent.com/u/4738210?v=3&s=50)
[v-braun](https://github.com/v-braun/)



## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


## License

See [LICENSE](https://github.com/v-braun/rsyncSwift/blob/master/LICENSE).
619 changes: 619 additions & 0 deletions rsyncSwift.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0640"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2AC9693F1BAFEE6B00E89D34"
BuildableName = "rsyncSwift.framework"
BlueprintName = "rsyncSwift"
ReferencedContainer = "container:rsyncSwift.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2AC9694A1BAFEE6B00E89D34"
BuildableName = "rsyncSwiftTests.xctest"
BlueprintName = "rsyncSwiftTests"
ReferencedContainer = "container:rsyncSwift.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2AC9694A1BAFEE6B00E89D34"
BuildableName = "rsyncSwiftTests.xctest"
BlueprintName = "rsyncSwiftTests"
ReferencedContainer = "container:rsyncSwift.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2AC9693F1BAFEE6B00E89D34"
BuildableName = "rsyncSwift.framework"
BlueprintName = "rsyncSwift"
ReferencedContainer = "container:rsyncSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2AC9693F1BAFEE6B00E89D34"
BuildableName = "rsyncSwift.framework"
BlueprintName = "rsyncSwift"
ReferencedContainer = "container:rsyncSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2AC9693F1BAFEE6B00E89D34"
BuildableName = "rsyncSwift.framework"
BlueprintName = "rsyncSwift"
ReferencedContainer = "container:rsyncSwift.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>rsyncSwift.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>2AC9693F1BAFEE6B00E89D34</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>2AC9694A1BAFEE6B00E89D34</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
10 changes: 10 additions & 0 deletions rsyncSwift.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "0"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "rsyncSwiftDemo/rsyncSwiftDemo/ViewController.swift"
timestampString = "464532021.945098"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "34"
endingLineNumber = "34"
landmarkName = "viewDidLoad()"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "rsyncSwift/rsyncWrapper.mm"
timestampString = "464537556.620161"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "137"
endingLineNumber = "137"
landmarkName = "-statusFileUpdate:isDir:withSize:withTime:withSymLink:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "rsyncSwiftDemo/rsyncSwiftDemo/ViewController.swift"
timestampString = "464537599.481052"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "35"
endingLineNumber = "35"
landmarkName = "viewDidLoad()"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "rsyncSwift/rsyncWrapper.mm"
timestampString = "464540862.338952"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "256"
endingLineNumber = "256"
landmarkName = "-uploadFromLocalDir:toRemoteDir:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "rsyncSwift/rsyncWrapper.mm"
timestampString = "464540862.338952"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "229"
endingLineNumber = "229"
landmarkName = "-uploadFromLocalDir:toRemoteDir:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "rsyncSwift/RsyncClient.swift"
timestampString = "464541260.651957"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "93"
endingLineNumber = "93"
landmarkName = "timerUpdate()"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
29 changes: 29 additions & 0 deletions rsyncSwift/DelegateHandler.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// DelegateHandler.cpp
// rsyncSwift
//
// Created by Viktor Braun on 19/09/15.
// Copyright (c) 2015 AW-SYSTEMS. All rights reserved.
//

#include <stdio.h>
#include "DelegateHandler.h"


DelegateHandler::DelegateHandler(){
statusMessage = NULL;
statusFile = NULL;
}

DelegateHandler::~DelegateHandler(){
statusMessage = NULL;
statusFile = NULL;
}

void DelegateHandler::in5(const char * path, bool isDir, int64_t size, int64_t time,
const char * symlink) const{
statusFile(path, isDir, size, time, symlink, context);
}
void DelegateHandler::in1(const char* msg) const{
statusMessage(msg, context);
}
37 changes: 37 additions & 0 deletions rsyncSwift/DelegateHandler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// DelegateHandler.h
// rsyncSwift
//
// Created by Viktor Braun on 19/09/15.
// Copyright (c) 2015 AW-SYSTEMS. All rights reserved.
//

#ifndef __rsyncSwift__DelegateHandler__
#define __rsyncSwift__DelegateHandler__

#include <stdio.h>
#include <vector>
#include <set>

class DelegateHandler {
private:

public:

void(*statusMessage)(const char* msg, void *context);

void(*statusFile)(const char * path, bool isDir, int64_t size, int64_t time,
const char * symlink, void *context);

void *context;

DelegateHandler();
~DelegateHandler();

void in1(const char*) const;
void in5(const char * /*path*/, bool /*isDir*/, int64_t /*size*/, int64_t /*time*/,
const char * /*symlink*/) const;

};

#endif /* defined(__rsyncSwift__DelegateHandler__) */
Loading

0 comments on commit 9b7fb4e

Please sign in to comment.