Skip to content

Commit

Permalink
Add Talend copyright and GPL V2 notice
Browse files Browse the repository at this point in the history
  • Loading branch information
echauchot committed Jun 30, 2022
1 parent cbd9ec9 commit 48070ea
Show file tree
Hide file tree
Showing 12 changed files with 173 additions and 21 deletions.
17 changes: 16 additions & 1 deletion ddMySqlBinLogCapture/MeasurementPrecision.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
//////////////////////////////////////////////////////////////////////////////////
//
//
Expand All @@ -7,7 +23,6 @@
//
// PURPOSE :A wrapper for measurement precision
//
// MANUFACTURER :Gamma Soft
//
// DATE :01/07/2011
//
Expand Down
17 changes: 16 additions & 1 deletion ddMySqlBinLogCapture/MyLogFile.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
//////////////////////////////////////////////////////////////////////////////////
//
//
Expand All @@ -7,7 +23,6 @@
//
// PURPOSE :A multithread debug log file wrapper
//
// MANUFACTURER :Gamma Soft
//
// DATE :03/08/2011
//
Expand Down
Binary file modified ddMySqlBinLogCapture/Resource.rc
Binary file not shown.
16 changes: 16 additions & 0 deletions ddMySqlBinLogCapture/StdAfx.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
#ifndef STDAFX_H
#define STDAFX_H

Expand Down
17 changes: 17 additions & 0 deletions ddMySqlBinLogCapture/StdOutRedirect.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */

#include <windows.h>

#include <stdio.h>
Expand Down
18 changes: 16 additions & 2 deletions ddMySqlBinLogCapture/ddBinlogLib.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
/*
* ddBinlogLib.h - DataDistribution MariadDB C/C++ library
*
* 2021 GammaSoft
* Gino Capogrosso
*
*/
#ifndef DDBINLOG_H
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3282,7 +3282,7 @@ static Exit_status dump_local_log_entries(PRINT_EVENT_INFO *print_event_info,
}

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!!!!!!! GAMMA SOFT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!!!!!!! START CUSTOM MODIFICATIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

////////////////////////////////////////
Expand Down Expand Up @@ -3577,7 +3577,7 @@ Exit_status StartReadBinLog(const char* pszLogName, unsigned long ulStartPositio
}

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!!!!!!! END GAMMA SOFT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!!!!!!! END CUSTOM MODIFICATIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Expand Down
19 changes: 17 additions & 2 deletions ddMySqlBinLogCapture/ddMariadb/ddMariadb.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
//////////////////////////////////////////////////////////////////////////////////
//
//
Expand All @@ -7,7 +23,6 @@
//
// PURPOSE :Defines the exported functions for the DLL application.
//
// MANUFACTURER :Gamma Soft
//
// DATE :29/12/2011
//
Expand Down Expand Up @@ -240,7 +255,7 @@ DDMYSQL_API long PASCAL MyGetAffectedRows(void *handle)

//////////////////////////////////////////////////////////////////////////////////////////////////////
// MyGetInfo
// Retrieve à string providing information about the most recently executed statement.
// Retrieve string providing information about the most recently executed statement.
// Only for the statement listed here:
// INSERT INTO ... SELECT ... string format = Records: 100 Duplicates: 0 Warnings: 0
// INSERT INTO ... VALUES (...), ((...),(...) ... string format = Records: 3 Duplicates: 0 Warnings: 0
Expand Down
17 changes: 16 additions & 1 deletion ddMySqlBinLogCapture/ddMariadb/ddMariadb.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
//////////////////////////////////////////////////////////////////////////////////
//
// FILE :ddMariadb.h
//
// PURPOSE :Defines the exported functions for the DLL application.
//
// MANUFACTURER :Gamma Soft
//
// DATE :29/12/2011
//
Expand Down
31 changes: 23 additions & 8 deletions ddMySqlBinLogCapture/ddMySqlBinLogCapture.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
/**
* MySQL / MariaDB Binlog capture
date 10/05/2022
*
* @author Gamma-soft
* @date 10/05/2022
*/

#include "StdAfx.h"
Expand Down Expand Up @@ -30,7 +45,7 @@ static const double UNIT_PER_SECOND = 10000000;

#define NOT_EXIST -1

#define COMPANY "GammaSoft"
#define COMPANY "Talend"
#define PROJECT "DataDistribution"
#define PROCESS_IDENTITY "ddMySqlBinLogCapture"
#define SECTION_DDFOR "DD_for_MySql"
Expand Down Expand Up @@ -522,7 +537,7 @@ void dd_log(char *msg)
/**
* Copies the first size characters of source to destination.
* if nullChar is true, a terminating null character is added at the end of destination.
* @returns Returns à pointer to destination.
* @returns Returns pointer to destination.
*/
char* ddstrncpy(char* destination, const char *source, int size, bool nullChar)
{
Expand Down Expand Up @@ -571,7 +586,7 @@ void cpyrtrim(char *destination, const char* source, unsigned int size)
*
* Copies the string pointed by source into the array pointed by dest
* Convert uppercase to lowercase
* source must be à string with terminating null-characters
* source must be string with terminating null-characters
* A terminating null character is added at the end of dest
* if length of source > iSizeDest only the iSizeDest-1 bytes will be copied
*
Expand Down Expand Up @@ -809,7 +824,7 @@ bool SendMessageToLogReader(char *pszProcessSender, int iMessage)
printf("%s\n", g_szbuffer_Tmp);
return false;
}
// The named pipe is busy. Let’s wait for 2 seconds.
// The named pipe is busy. Lets wait for 2 seconds.
if (!WaitNamedPipe((LPSTR)g_szPipeName, 2000))
{
dwError = GetLastSystemError();
Expand Down Expand Up @@ -893,8 +908,8 @@ bool LoadMySQLLib(char *pszLibName, char *pszMsg)
NULL, // source
dwError, // code d'erreur
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
szErrorMsg, // stocker la description
sizeof(szErrorMsg), // taille minimale à retourner
szErrorMsg, // o� stocker la description
sizeof(szErrorMsg), // taille minimale retourner
0);

if (pszMsg)
Expand Down
21 changes: 18 additions & 3 deletions ddMySqlBinLogCapture/ddbinlogdll.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
/*
* ddbinlogdll - DataDistribution binlog C/C++ library
*
* 2021 GammaSoft
*
*/

Expand Down Expand Up @@ -48,8 +63,8 @@ char* GetDllErrorBinlog(/* out */char *msg)
NULL, // source
error, // code d'erreur
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
errorMsg, // stocker la description
sizeof(errorMsg), // taille minimale à retourner
errorMsg, // o� stocker la description
sizeof(errorMsg), // taille minimale retourner
0);
sprintf(msg, "%ld - %s", error, errorMsg);
return msg;
Expand Down
17 changes: 16 additions & 1 deletion ddMySqlBinLogCapture/synchronization.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111-1301, USA */
//////////////////////////////////////////////////////////////////////////////////
//
//
Expand All @@ -7,7 +23,6 @@
//
// PURPOSE :syncronisation wrapper
//
// MANUFACTURER :Gamma Soft
//
// DATE :17/05/2013
//
Expand Down

0 comments on commit 48070ea

Please sign in to comment.